mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
Possible use after free.
This commit is contained in:
@ -24436,6 +24436,7 @@ err_exit:
|
|||||||
#if !defined(NO_ASN) && !defined(NO_PWDBASED)
|
#if !defined(NO_ASN) && !defined(NO_PWDBASED)
|
||||||
if ((newx509 != NULL) && (type == PKCS12_TYPE)) {
|
if ((newx509 != NULL) && (type == PKCS12_TYPE)) {
|
||||||
wc_PKCS12_free((WC_PKCS12*)newx509);
|
wc_PKCS12_free((WC_PKCS12*)newx509);
|
||||||
|
newx509 = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
_exit:
|
_exit:
|
||||||
|
Reference in New Issue
Block a user