Skip to content

Commit 4bd167a

Browse files
olszomalmtrojnar
authored andcommitted
Fixed directly dereferencing parameter p7, CID 1576008
1 parent e7405fa commit 4bd167a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osslsigncode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ static int add_unauthenticated_blob(PKCS7 *p7, const char *blob_file)
13571357
fprintf(stderr, "Failed to obtain PKCS#7 signer info list\n");
13581358
return 0; /* FAILED */
13591359
}
1360-
si = sk_PKCS7_SIGNER_INFO_value(p7->d.sign->signer_info, 0);
1360+
si = sk_PKCS7_SIGNER_INFO_value(signer_info, 0);
13611361
if (!si) {
13621362
fprintf(stderr, "Failed to obtain signer info from PKCS#7 structure\n");
13631363
return 0; /* FAILED */

0 commit comments

Comments
 (0)