diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 2026f83c2..03fcfb52a 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -2392,12 +2392,8 @@ send_request: goto exit; } - mbedtls_ssl_free( &ssl ); - mbedtls_printf( " Deserializing connection..." ); - mbedtls_ssl_init( &ssl ); - if( ( ret = mbedtls_ssl_context_load( &ssl, buf, len ) ) != 0 ) { mbedtls_printf( "failed\n ! mbedtls_ssl_context_load returned -0x%x\n\n", -ret ); diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 5c640ab78..c1e749f94 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -3377,12 +3377,8 @@ data_exchange: goto exit; } - mbedtls_ssl_free( &ssl ); - mbedtls_printf( " Deserializing connection..." ); - mbedtls_ssl_init( &ssl ); - if( ( ret = mbedtls_ssl_context_load( &ssl, buf, len ) ) != 0 ) { mbedtls_printf( "failed\n ! mbedtls_ssl_context_load returned -0x%x\n\n", -ret );