mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Remove mbedtls_ssl_free() and mbedtls_ssl_init() from serialization flow in test
This commit is contained in:
@ -2946,12 +2946,8 @@ send_request:
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
mbedtls_ssl_free( &ssl );
|
|
||||||
|
|
||||||
mbedtls_printf( " Deserializing connection..." );
|
mbedtls_printf( " Deserializing connection..." );
|
||||||
|
|
||||||
mbedtls_ssl_init( &ssl );
|
|
||||||
|
|
||||||
if( ( ret = mbedtls_ssl_context_load( &ssl, buf, len ) ) != 0 )
|
if( ( ret = mbedtls_ssl_context_load( &ssl, buf, len ) ) != 0 )
|
||||||
{
|
{
|
||||||
mbedtls_printf( "failed\n ! mbedtls_ssl_context_load returned -0x%x\n\n", -ret );
|
mbedtls_printf( "failed\n ! mbedtls_ssl_context_load returned -0x%x\n\n", -ret );
|
||||||
|
@ -3957,12 +3957,8 @@ data_exchange:
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
mbedtls_ssl_free( &ssl );
|
|
||||||
|
|
||||||
mbedtls_printf( " Deserializing connection..." );
|
mbedtls_printf( " Deserializing connection..." );
|
||||||
|
|
||||||
mbedtls_ssl_init( &ssl );
|
|
||||||
|
|
||||||
if( ( ret = mbedtls_ssl_context_load( &ssl, buf, len ) ) != 0 )
|
if( ( ret = mbedtls_ssl_context_load( &ssl, buf, len ) ) != 0 )
|
||||||
{
|
{
|
||||||
mbedtls_printf( "failed\n ! mbedtls_ssl_context_load returned -0x%x\n\n", -ret );
|
mbedtls_printf( "failed\n ! mbedtls_ssl_context_load returned -0x%x\n\n", -ret );
|
||||||
|
Reference in New Issue
Block a user