diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 0db53dbd03..a574a2c12e 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -1326,12 +1326,6 @@ send_request: ret = 0; goto close_notify; - case 0: - case POLARSSL_ERR_NET_CONN_RESET: - printf( " connection was reset by peer\n" ); - ret = 0; - goto reconnect; - default: printf( " ssl_read returned -0x%x\n", -ret ); goto exit; diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 92c99fb5ba..13922646a2 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -1875,12 +1875,6 @@ data_exchange: ret = 0; goto close_notify; - case 0: - case POLARSSL_ERR_NET_CONN_RESET: - printf( " connection was reset by peer\n" ); - ret = POLARSSL_ERR_NET_CONN_RESET; - goto reset; - default: printf( " ssl_read returned -0x%x\n", -ret ); goto reset;