From: Sean Parkinson Date: Thu, 29 Mar 2018 04:55:55 +0000 (+1000) Subject: wolfSSL: Do not free cert store after setting it X-Git-Tag: hostap_2_7~356 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71faf06cb644c6389f247fd4961e661a7da1b58f;p=thirdparty%2Fhostap.git wolfSSL: Do not free cert store after setting it Signed-off-by: Sean Parkinson --- diff --git a/src/crypto/tls_wolfssl.c b/src/crypto/tls_wolfssl.c index 88b1ad74e..c72fa72d6 100644 --- a/src/crypto/tls_wolfssl.c +++ b/src/crypto/tls_wolfssl.c @@ -1179,7 +1179,6 @@ static int tls_connection_ca_cert(void *tls_ctx, struct tls_connection *conn, return -1; } wolfSSL_CTX_set_cert_store(ctx, cm); - XFREE(cm, NULL, DYNAMIC_TYPE_X509_STORE); if (wolfSSL_CTX_load_verify_locations(ctx, ca_cert, ca_path) != SSL_SUCCESS) {