From 109e4c3dfb9bd0c6e5826c08f148cc1dce8af0a0 Mon Sep 17 00:00:00 2001 From: Reda Chouk Date: Thu, 29 Aug 2024 17:59:02 +0200 Subject: [PATCH] added missing wolfSSL_X509_NAME_free(dName) --- wolfcrypt/src/asn.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 6df25d35b3..f6b72736c0 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -14003,6 +14003,10 @@ static int GetCertName(DecodedCert* cert, char* full, byte* hash, int nameType, " found"); WOLFSSL_MSG("Use WOLFSSL_NO_ASN_STRICT if wanting to allow" " empty DirectoryString's"); + #if (defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)) && \ + !defined(WOLFCRYPT_ONLY) + wolfSSL_X509_NAME_free(dName); + #endif /* OPENSSL_EXTRA */ return ASN_PARSE_E; } #endif