Possible use after free.

This commit is contained in:
Stanislav Klima
2020-01-29 17:29:52 +01:00
parent 77b69ebf56
commit 96d1593735

View File

@ -24436,6 +24436,7 @@ err_exit:
#if !defined(NO_ASN) && !defined(NO_PWDBASED)
if ((newx509 != NULL) && (type == PKCS12_TYPE)) {
wc_PKCS12_free((WC_PKCS12*)newx509);
newx509 = NULL;
}
#endif
_exit: