Fix memory leak upon ciphersuite mismatch during session resumption

Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
Hanno Becker 2021-05-13 06:26:37 +01:00
parent 7ad77963d1
commit df56402623

View file

@ -2810,7 +2810,7 @@ static void ssl_handle_id_based_session_resumption( mbedtls_ssl_context *ssl )
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 )