Merge pull request #7921 from gasbytes/oss-fuzz-70747

added missing wolfSSL_X509_NAME_free(dName)
pull/7925/head
Daniel Pouzzner 2024-08-29 15:15:52 -05:00 committed by GitHub
commit f670400183
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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