mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-01 17:10:16 +00:00
Fixed memory leak in ssl_parse_server_key_exchange from missing
md_free_ctx()
This commit is contained in:
parent
b03de8bcbe
commit
04376b1419
|
@ -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->handshake->randbytes, 64 );
|
||||||
md_update( &ctx, ssl->in_msg + 4, n );
|
md_update( &ctx, ssl->in_msg + 4, n );
|
||||||
md_finish( &ctx, hash );
|
md_finish( &ctx, hash );
|
||||||
|
md_free_ctx( &ctx );
|
||||||
}
|
}
|
||||||
|
|
||||||
SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen );
|
SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen );
|
||||||
|
|
Loading…
Reference in a new issue