wolfSSL: Do not free cert store after setting it

Signed-off-by: Sean Parkinson <sean@wolfssl.com>
This commit is contained in:
Sean Parkinson 2018-03-29 14:55:55 +10:00 committed by Jouni Malinen
parent b7f5b0ec65
commit 71faf06cb6

View file

@ -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) {