mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 03:07:29 +02:00
Check correct var for server.c
echo return.
This commit is contained in:
@ -3183,7 +3183,8 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
|||||||
}
|
}
|
||||||
else if (err == 0 || err == WOLFSSL_ERROR_ZERO_RETURN) {
|
else if (err == 0 || err == WOLFSSL_ERROR_ZERO_RETURN) {
|
||||||
err = ServerEchoData(ssl, clientfd, echoData, block, throughput);
|
err = ServerEchoData(ssl, clientfd, echoData, block, throughput);
|
||||||
if (err == WOLFSSL_ERROR_ZERO_RETURN && runWithErrors == 1) /* Got close notify */
|
/* Got close notify. Ignore it if not expecting a failure. */
|
||||||
|
if (err == WOLFSSL_ERROR_ZERO_RETURN && exitWithRet == 0)
|
||||||
err = 0;
|
err = 0;
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
SSL_free(ssl); ssl = NULL;
|
SSL_free(ssl); ssl = NULL;
|
||||||
|
Reference in New Issue
Block a user