Init and free new contexts in the right place for SSL to prevent

memory leaks
This commit is contained in:
Paul Bakker 2013-07-04 11:51:43 +02:00
parent 8647eecf90
commit 61d113bb7b
3 changed files with 30 additions and 5 deletions

View file

@ -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 )
{