mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-04 17:00:11 -05:00
Fixed directly dereferencing parameter p7, CID 1576008
This commit is contained in:
parent
e7405fa839
commit
4bd167a8be
@ -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");
|
fprintf(stderr, "Failed to obtain PKCS#7 signer info list\n");
|
||||||
return 0; /* FAILED */
|
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) {
|
if (!si) {
|
||||||
fprintf(stderr, "Failed to obtain signer info from PKCS#7 structure\n");
|
fprintf(stderr, "Failed to obtain signer info from PKCS#7 structure\n");
|
||||||
return 0; /* FAILED */
|
return 0; /* FAILED */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user