Fixed directly dereferencing parameter p7, CID 1576008

This commit is contained in:
olszomal 2025-03-31 11:02:37 +02:00 committed by Michał Trojnara
parent e7405fa839
commit 4bd167a8be

View File

@ -1357,7 +1357,7 @@ static int add_unauthenticated_blob(PKCS7 *p7, const char *blob_file)
fprintf(stderr, "Failed to obtain PKCS#7 signer info list\n");
return 0; /* FAILED */
}
si = sk_PKCS7_SIGNER_INFO_value(p7->d.sign->signer_info, 0);
si = sk_PKCS7_SIGNER_INFO_value(signer_info, 0);
if (!si) {
fprintf(stderr, "Failed to obtain signer info from PKCS#7 structure\n");
return 0; /* FAILED */