mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
more scan-build LLVM-13 fixes and expanded coverage: deadcode.DeadStores in client.c and server.c (no functional changes).
This commit is contained in:
@ -3693,7 +3693,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
if (scr && forceScr) {
|
||||
if (nonBlocking) {
|
||||
if (!resumeScr) {
|
||||
if ((ret = wolfSSL_Rehandshake(ssl)) != WOLFSSL_SUCCESS) {
|
||||
if (wolfSSL_Rehandshake(ssl) != WOLFSSL_SUCCESS) {
|
||||
err = wolfSSL_get_error(ssl, 0);
|
||||
if (err == WOLFSSL_ERROR_WANT_READ ||
|
||||
err == WOLFSSL_ERROR_WANT_WRITE) {
|
||||
@ -3712,8 +3712,8 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
else {
|
||||
do {
|
||||
if (err == APP_DATA_READY) {
|
||||
if ((ret = wolfSSL_read(ssl, reply,
|
||||
sizeof(reply)-1)) < 0) {
|
||||
if (wolfSSL_read(ssl, reply,
|
||||
sizeof(reply)-1) < 0) {
|
||||
err_sys("APP DATA should be present "
|
||||
"but error returned");
|
||||
}
|
||||
|
@ -3073,13 +3073,13 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
||||
defined(HAVE_SERVER_RENEGOTIATION_INFO)
|
||||
if (scr && forceScr) {
|
||||
if (nonBlocking) {
|
||||
if ((ret = wolfSSL_Rehandshake(ssl)) != WOLFSSL_SUCCESS) {
|
||||
if (wolfSSL_Rehandshake(ssl) != WOLFSSL_SUCCESS) {
|
||||
err = wolfSSL_get_error(ssl, 0);
|
||||
if (err == WOLFSSL_ERROR_WANT_READ ||
|
||||
err == WOLFSSL_ERROR_WANT_WRITE) {
|
||||
do {
|
||||
if (err == APP_DATA_READY) {
|
||||
if ((ret = wolfSSL_read(ssl, input, sizeof(input)-1)) < 0) {
|
||||
if (wolfSSL_read(ssl, input, sizeof(input)-1) < 0) {
|
||||
err_sys("APP DATA should be present but error returned");
|
||||
}
|
||||
printf("Received message: %s\n", input);
|
||||
@ -3112,7 +3112,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ((ret = wolfSSL_Rehandshake(ssl)) != WOLFSSL_SUCCESS) {
|
||||
if (wolfSSL_Rehandshake(ssl) != WOLFSSL_SUCCESS) {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = wolfSSL_get_error(ssl, 0);
|
||||
while (err == WC_PENDING_E) {
|
||||
|
Reference in New Issue
Block a user