fixed memory leak

This commit is contained in:
Hideki Miyazaki
2021-05-06 16:55:51 +09:00
parent 93f04543b0
commit 2a39f1dc5c

View File

@ -3791,13 +3791,11 @@ static void test_client_verifyDepth(void* args)
method = cbf->method();
}
else {
method = wolfSSLv23_server_method();
method = wolfSSLv23_client_method();
}
ctx = wolfSSL_CTX_new(method);
}
ctx = wolfSSL_CTX_new(wolfSSLv23_client_method());
/* Do connect here so server detects failures */
tcp_connect(&sockfd, wolfSSLIP, ((func_args*)args)->signal->port,
0, 0, NULL);