mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Fix memory leak upon ciphersuite mismatch during session resumption
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
@ -2810,7 +2810,7 @@ static void ssl_handle_id_based_session_resumption( mbedtls_ssl_context *ssl )
|
|||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
|
||||||
mbedtls_platform_zeroize( &session_tmp, sizeof( session_tmp ) );
|
mbedtls_ssl_session_free( &session_tmp );
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ssl_write_server_hello( mbedtls_ssl_context *ssl )
|
static int ssl_write_server_hello( mbedtls_ssl_context *ssl )
|
||||||
|
Reference in New Issue
Block a user