File openssl-fix-ecdh_negotiation_bug.patch of Package compat-openssl098.11471

commit 55708796af6c7ed18ad28eb91733186b22610e42
Author: Dr. Stephen Henson <steve@openssl.org>
Date:   Sat Jun 13 20:47:09 2009 +0000

    Update from HEAD.
(openssl master 21b25ed4b83334b0296aa5b33a250f1f7488de4c)

Index: openssl-0.9.8j/ssl/s3_srvr.c
===================================================================
--- openssl-0.9.8j.orig/ssl/s3_srvr.c
+++ openssl-0.9.8j/ssl/s3_srvr.c
@@ -2337,6 +2337,8 @@ int ssl3_get_client_key_exchange(SSL *s)
 		if (srvr_ecdh != NULL) 
 			EC_KEY_free(srvr_ecdh);
 		BN_CTX_free(bn_ctx);
+		EC_KEY_free(s->s3->tmp.ecdh);
+		s->s3->tmp.ecdh = NULL; 
 
 		/* Compute the master secret */
                 s->session->master_key_length = s->method->ssl3_enc-> \

openSUSE Build Service is sponsored by