mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-25 23:58:42 +00:00
Fixed memory leak in ssl_parse_server_key_exchange from missing
md_free_ctx()
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user