summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index ec7b38a..fcac97d 100644
--- a/src/io.c
+++ b/src/io.c
@@ -649,7 +649,7 @@ void apk_fileinfo_hash_xattr_array(struct apk_xattr_array *xattrs, const EVP_MD
qsort(xattrs->item, xattrs->num, sizeof(xattrs->item[0]), cmp_xattr);
- EVP_DigestInit_ex(mdctx, EVP_sha1(), NULL);
+ EVP_DigestInit_ex(mdctx, md, NULL);
foreach_array_item(xattr, xattrs) {
hash_len_data(mdctx, strlen(xattr->name), xattr->name);
hash_len_data(mdctx, xattr->value.len, xattr->value.ptr);