mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
Fix for example client/server with -H exitWithRet
option to make sure all cleanup is performed. Resolves valgrind report due to TicketCleanup()
not being called.
This commit is contained in:
@ -2115,7 +2115,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
/* if you're getting an error here */
|
||||
|
||||
((func_args*)args)->return_code = err;
|
||||
return 0;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
showPeer(ssl);
|
||||
@ -2577,6 +2577,8 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
|
||||
((func_args*)args)->return_code = 0;
|
||||
|
||||
exit:
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
wolfAsync_DevClose(&devId);
|
||||
#endif
|
||||
|
@ -1490,7 +1490,7 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
|
||||
err_sys_ex(runWithErrors, "SSL_accept failed");
|
||||
|
||||
((func_args*)args)->return_code = err;
|
||||
return 0;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
showPeer(ssl);
|
||||
@ -1677,6 +1677,7 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
|
||||
|
||||
((func_args*)args)->return_code = 0;
|
||||
|
||||
exit:
|
||||
|
||||
#if defined(NO_MAIN_DRIVER) && defined(HAVE_ECC) && defined(FP_ECC) \
|
||||
&& defined(HAVE_THREAD_LS)
|
||||
|
Reference in New Issue
Block a user