From 04376b1419aa319d2f89b9b783de39bc9c30c4c8 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Fri, 16 Aug 2013 14:45:26 +0200
Subject: [PATCH] Fixed memory leak in ssl_parse_server_key_exchange from
missing md_free_ctx()
---
library/ssl_cli.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/library/ssl_cli.c b/library/ssl_cli.c
index dcf5f5150..667434819 100644
--- a/library/ssl_cli.c
+++ b/library/ssl_cli.c
@@ -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 );