Init and free new contexts in the right place for SSL to prevent
memory leaks
This commit is contained in:
parent
8647eecf90
commit
61d113bb7b
3 changed files with 30 additions and 5 deletions
|
@ -824,8 +824,6 @@ static int ssl_parse_server_ecdh_params( ssl_context *ssl,
|
|||
* ECPoint public;
|
||||
* } ServerECDHParams;
|
||||
*/
|
||||
ecdh_init( &ssl->handshake->ecdh_ctx );
|
||||
|
||||
if( ( ret = ecdh_read_params( &ssl->handshake->ecdh_ctx,
|
||||
(const unsigned char **) p, end ) ) != 0 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue