forked from wolfSSL/wolfssl
tests: api: error out on read error in test_server_nofail
This commit is contained in:
@@ -5435,6 +5435,9 @@ static THREAD_RETURN WOLFSSL_THREAD test_server_nofail(void* args)
|
|||||||
input[idx] = '\0';
|
input[idx] = '\0';
|
||||||
fprintf(stderr, "Client message: %s\n", input);
|
fprintf(stderr, "Client message: %s\n", input);
|
||||||
}
|
}
|
||||||
|
else if (idx < 0) {
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
if (wolfSSL_write(ssl, msg, sizeof(msg)) != sizeof(msg)) {
|
if (wolfSSL_write(ssl, msg, sizeof(msg)) != sizeof(msg)) {
|
||||||
/*err_sys("SSL_write failed");*/
|
/*err_sys("SSL_write failed");*/
|
||||||
|
Reference in New Issue
Block a user