1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-12-24 17:41:01 +03:00

Fixed memory leak in ssl_parse_server_key_exchange from missing

md_free_ctx()
This commit is contained in:
Paul Bakker
2013-08-16 14:45:26 +02:00
parent b03de8bcbe
commit 04376b1419

View File

@@ -1413,6 +1413,7 @@ static int ssl_parse_server_key_exchange( ssl_context *ssl )
md_update( &ctx, ssl->handshake->randbytes, 64 );
md_update( &ctx, ssl->in_msg + 4, n );
md_finish( &ctx, hash );
md_free_ctx( &ctx );
}
SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen );