Skip to content

Commit e7405fa

Browse files
olszomalmtrojnar
authored andcommitted
Simplify error handling in PKCS#7 certificate loading, CID 1639170
1 parent 776e2ec commit e7405fa

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
@@ -4269,7 +4269,7 @@ static int read_crypto_params(GLOBAL_OPTIONS *options)
42694269

42704270
/* OpenSSL store API does not support PKCS#7 format */
42714271
if (sk_X509_num(options->certs) == 0 && !read_pkcs7_certfile(options)) {
4272-
goto out;
4272+
return 0; /* FAILED */
42734273
}
42744274
out:
42754275
return (options->pkey && sk_X509_num(options->certs) > 0) ? 1 : 0;

0 commit comments

Comments
 (0)