Skip to content

Commit

Permalink
Merge pull request #7921 from gasbytes/oss-fuzz-70747
Browse files Browse the repository at this point in the history
added missing wolfSSL_X509_NAME_free(dName)
  • Loading branch information
douzzer authored Aug 29, 2024
2 parents 31ec2b0 + 109e4c3 commit f670400
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wolfcrypt/src/asn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f670400

Please sign in to comment.