Bug 823100, ssl_NewSocket should init ephemeralECDHKeyPair to NULL, r=ryan.sleevi
authorKai Engert <kaie@kuix.de>
Mon, 04 Mar 2013 20:50:14 +0100
changeset 10693 7e86fab0cd5d0642570a06765c45b20a6eecdf85
parent 10692 fbac6f829f1c63378a3d6db1cd0cd599b3053842
child 10694 c2f317d49d315d755ff0bd98b2542f5785da25ec
push id6
push userkaie@kuix.de
push dateMon, 04 Mar 2013 19:50:42 +0000
reviewersryan.sleevi
bugs823100
Bug 823100, ssl_NewSocket should init ephemeralECDHKeyPair to NULL, r=ryan.sleevi
lib/ssl/sslsock.c
--- a/lib/ssl/sslsock.c
+++ b/lib/ssl/sslsock.c
@@ -2969,16 +2969,17 @@ ssl_NewSocket(PRBool makeLocks, SSLProto
 	ss->authCertificate    = SSL_AuthCertificate;
 	ss->authCertificateArg = (void *)ss->dbHandle;
         ss->sniSocketConfig    = NULL;
         ss->sniSocketConfigArg = NULL;
 	ss->getClientAuthData  = NULL;
 	ss->handleBadCert      = NULL;
 	ss->badCertArg         = NULL;
 	ss->pkcs11PinArg       = NULL;
+	ss->ephemeralECDHKeyPair = NULL;
 
 	ssl_ChooseOps(ss);
 	ssl2_InitSocketPolicy(ss);
 	ssl3_InitSocketPolicy(ss);
 	PR_INIT_CLIST(&ss->ssl3.hs.lastMessageFlight);
 
 	if (makeLocks) {
 	    status = ssl_MakeLocks(ss);