mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-08-10 05:07:50 +00:00
Remove unneeded setting of ret from ssl programs
Remove coverity warnings on unused values. Signed-off-by: Paul Elliott <[email protected]>
This commit is contained in:
@@ -294,7 +294,6 @@ send_request:
|
||||
|
||||
case MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY:
|
||||
mbedtls_printf(" connection was closed gracefully\n");
|
||||
ret = 0;
|
||||
goto close_notify;
|
||||
|
||||
default:
|
||||
|
||||
@@ -331,7 +331,6 @@ reset:
|
||||
|
||||
case MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY:
|
||||
printf(" connection was closed gracefully\n");
|
||||
ret = 0;
|
||||
goto close_notify;
|
||||
|
||||
default:
|
||||
|
||||
@@ -3781,7 +3781,6 @@ data_exchange:
|
||||
switch (ret) {
|
||||
case MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY:
|
||||
mbedtls_printf(" connection was closed gracefully\n");
|
||||
ret = 0;
|
||||
goto close_notify;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user