From 2a39f1dc5c592272508436eb29d12d45d4307d38 Mon Sep 17 00:00:00 2001 From: Hideki Miyazaki Date: Thu, 6 May 2021 16:55:51 +0900 Subject: [PATCH] fixed memory leak --- tests/api.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/api.c b/tests/api.c index 071d8272f..77b1e87e8 100644 --- a/tests/api.c +++ b/tests/api.c @@ -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);