forked from wolfSSL/wolfssl
Return the close notify error when expecting an error.
This commit is contained in:
@ -3180,7 +3180,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
||||
}
|
||||
else if (err == 0 || err == WOLFSSL_ERROR_ZERO_RETURN) {
|
||||
err = ServerEchoData(ssl, clientfd, echoData, block, throughput);
|
||||
if (err == WOLFSSL_ERROR_ZERO_RETURN) /* Got close notify */
|
||||
if (err == WOLFSSL_ERROR_ZERO_RETURN && runWithErrors == 1) /* Got close notify */
|
||||
err = 0;
|
||||
if (err != 0) {
|
||||
SSL_free(ssl); ssl = NULL;
|
||||
|
Reference in New Issue
Block a user