mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
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) {
|
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) /* Got close notify */
|
if (err == WOLFSSL_ERROR_ZERO_RETURN && runWithErrors == 1) /* Got close notify */
|
||||||
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