mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 03:07:29 +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 (scr && forceScr) {
|
||||||
if (nonBlocking) {
|
if (nonBlocking) {
|
||||||
if (!resumeScr) {
|
if (!resumeScr) {
|
||||||
if ((ret = wolfSSL_Rehandshake(ssl)) != WOLFSSL_SUCCESS) {
|
if (wolfSSL_Rehandshake(ssl) != WOLFSSL_SUCCESS) {
|
||||||
err = wolfSSL_get_error(ssl, 0);
|
err = wolfSSL_get_error(ssl, 0);
|
||||||
if (err == WOLFSSL_ERROR_WANT_READ ||
|
if (err == WOLFSSL_ERROR_WANT_READ ||
|
||||||
err == WOLFSSL_ERROR_WANT_WRITE) {
|
err == WOLFSSL_ERROR_WANT_WRITE) {
|
||||||
@ -3712,8 +3712,8 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
|||||||
else {
|
else {
|
||||||
do {
|
do {
|
||||||
if (err == APP_DATA_READY) {
|
if (err == APP_DATA_READY) {
|
||||||
if ((ret = wolfSSL_read(ssl, reply,
|
if (wolfSSL_read(ssl, reply,
|
||||||
sizeof(reply)-1)) < 0) {
|
sizeof(reply)-1) < 0) {
|
||||||
err_sys("APP DATA should be present "
|
err_sys("APP DATA should be present "
|
||||||
"but error returned");
|
"but error returned");
|
||||||
}
|
}
|
||||||
|
@ -3073,13 +3073,13 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
|||||||
defined(HAVE_SERVER_RENEGOTIATION_INFO)
|
defined(HAVE_SERVER_RENEGOTIATION_INFO)
|
||||||
if (scr && forceScr) {
|
if (scr && forceScr) {
|
||||||
if (nonBlocking) {
|
if (nonBlocking) {
|
||||||
if ((ret = wolfSSL_Rehandshake(ssl)) != WOLFSSL_SUCCESS) {
|
if (wolfSSL_Rehandshake(ssl) != WOLFSSL_SUCCESS) {
|
||||||
err = wolfSSL_get_error(ssl, 0);
|
err = wolfSSL_get_error(ssl, 0);
|
||||||
if (err == WOLFSSL_ERROR_WANT_READ ||
|
if (err == WOLFSSL_ERROR_WANT_READ ||
|
||||||
err == WOLFSSL_ERROR_WANT_WRITE) {
|
err == WOLFSSL_ERROR_WANT_WRITE) {
|
||||||
do {
|
do {
|
||||||
if (err == APP_DATA_READY) {
|
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");
|
err_sys("APP DATA should be present but error returned");
|
||||||
}
|
}
|
||||||
printf("Received message: %s\n", input);
|
printf("Received message: %s\n", input);
|
||||||
@ -3112,7 +3112,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((ret = wolfSSL_Rehandshake(ssl)) != WOLFSSL_SUCCESS) {
|
if (wolfSSL_Rehandshake(ssl) != WOLFSSL_SUCCESS) {
|
||||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||||
err = wolfSSL_get_error(ssl, 0);
|
err = wolfSSL_get_error(ssl, 0);
|
||||||
while (err == WC_PENDING_E) {
|
while (err == WC_PENDING_E) {
|
||||||
|
Reference in New Issue
Block a user