Skip to content

Commit 0efc811

Browse files
Fix potential memory leak in wolfSSL_X509_verify_cert.
1 parent b56cafd commit 0efc811

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)