mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 15:42:26 +01:00
Merge pull request #9258 from kareem-wolfssl/zd19563_4
Fix potential memory leak in wolfSSL_X509_verify_cert.
This commit is contained in:
@@ -514,7 +514,7 @@ int wolfSSL_X509_verify_cert(WOLFSSL_X509_STORE_CTX* ctx)
|
||||
|
||||
failedCerts = wolfSSL_sk_X509_new_null();
|
||||
if (!failedCerts)
|
||||
return WOLFSSL_FATAL_ERROR;
|
||||
goto exit;
|
||||
|
||||
if (ctx->depth > 0) {
|
||||
depth = ctx->depth + 1;
|
||||
|
||||
Reference in New Issue
Block a user