don't ignore md parameter to apk_fileinfo_hash_xattr_array()

cute-signatures
Reid Rankin 2020-01-24 14:56:53 +00:00 committed by Timo Teräs
parent 9a76f0d6a6
commit 6cc3e6a1de
1 changed files with 1 additions and 1 deletions

View File

@ -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);