Skip to content

Commit

Permalink
Fix dereference after null check, CID 1576008
Browse files Browse the repository at this point in the history
  • Loading branch information
olszomal authored and mtrojnar committed Jan 24, 2024
1 parent f3ac2c0 commit 31b046c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osslsigncode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4402,8 +4402,8 @@ int main(int argc, char **argv)
/* Obtain an existing PKCS#7 signature from a "sigin" file */
p7 = pkcs7_get_sigfile(ctx);
if (!p7) {
printf("Unable to extract valid signature\n");
PKCS7_free(cursig);
DO_EXIT_0("Unable to extract valid signature\n");
}
if (ctx->format->process_data) {
ctx->format->process_data(ctx, hash, outdata);
Expand Down

0 comments on commit 31b046c

Please sign in to comment.