File CVE-2010-2939.patch of Package compat-openssl098.1339

Index: openssl-0.9.8h/ssl/s3_clnt.c
===================================================================
--- openssl-0.9.8h.orig/ssl/s3_clnt.c
+++ openssl-0.9.8h/ssl/s3_clnt.c
@@ -1368,6 +1368,7 @@ int ssl3_get_key_exchange(SSL *s)
 		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;
 		}