Fix memory leak upon ciphersuite mismatch during session resumption
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
7ad77963d1
commit
df56402623
1 changed files with 1 additions and 1 deletions
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue