Fixed memory leak in ssl_parse_server_key_exchange from missing
md_free_ctx()
This commit is contained in:
parent
b03de8bcbe
commit
04376b1419
1 changed files with 1 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue