summaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/openssl/openssl-1.0.0a/openssl-fix-ssl3_get_key_exchange-double-free.patch
blob: 4e988498a39977e209865d0b9b10d69a68367219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Index: openssl-1.0.0a/ssl/s3_clnt.c
===================================================================
--- openssl-1.0.0a.orig/ssl/s3_clnt.c	2010-09-13 18:38:01.000000000 +0400
+++ openssl-1.0.0a/ssl/s3_clnt.c	2010-09-13 18:38:35.000000000 +0400
@@ -1508,6 +1508,7 @@
 		s->session->sess_cert->peer_ecdh_tmp=ecdh;
 		ecdh=NULL;
 		BN_CTX_free(bn_ctx);
+		bn_ctx = NULL;
 		EC_POINT_free(srvr_ecpoint);
 		srvr_ecpoint = NULL;
 		}