From e7405fa839359f4a9850382dd7877ca79eb05c4a Mon Sep 17 00:00:00 2001 From: olszomal Date: Mon, 31 Mar 2025 10:33:41 +0200 Subject: [PATCH] Simplify error handling in PKCS#7 certificate loading, CID 1639170 --- osslsigncode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osslsigncode.c b/osslsigncode.c index 3ad4bd9..ed96124 100644 --- a/osslsigncode.c +++ b/osslsigncode.c @@ -4269,7 +4269,7 @@ static int read_crypto_params(GLOBAL_OPTIONS *options) /* OpenSSL store API does not support PKCS#7 format */ if (sk_X509_num(options->certs) == 0 && !read_pkcs7_certfile(options)) { - goto out; + return 0; /* FAILED */ } out: return (options->pkey && sk_X509_num(options->certs) > 0) ? 1 : 0;