From 96d1593735d928ee7e42d26b1c26ce6e9b27f668 Mon Sep 17 00:00:00 2001 From: Stanislav Klima Date: Wed, 29 Jan 2020 17:29:52 +0100 Subject: [PATCH] Possible use after free. --- src/ssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ssl.c b/src/ssl.c index 149594eb0..783689da9 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -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: