From 31b046cf984a06c4094f43bc29dc234cbaa934f7 Mon Sep 17 00:00:00 2001 From: olszomal Date: Wed, 24 Jan 2024 09:01:23 +0100 Subject: [PATCH] Fix dereference after null check, CID 1576008 --- osslsigncode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osslsigncode.c b/osslsigncode.c index 8a067b3..94310ac 100644 --- a/osslsigncode.c +++ b/osslsigncode.c @@ -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);