Skip to content

Commit 3f460b4

Browse files
authored
Merge pull request #9258 from kareem-wolfssl/zd19563_4
Fix potential memory leak in wolfSSL_X509_verify_cert.
2 parents 29e2f21 + b564138 commit 3f460b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/x509_str.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ int wolfSSL_X509_verify_cert(WOLFSSL_X509_STORE_CTX* ctx)
514514

515515
failedCerts = wolfSSL_sk_X509_new_null();
516516
if (!failedCerts)
517-
return WOLFSSL_FATAL_ERROR;
517+
goto exit;
518518

519519
if (ctx->depth > 0) {
520520
depth = ctx->depth + 1;

0 commit comments

Comments
 (0)