diff --git a/mozilla/security/nss/lib/ssl/ssl3con.c b/mozilla/security/nss/lib/ssl/ssl3con.c index 3b0fc783777..7bbd9fc28c3 100644 --- a/mozilla/security/nss/lib/ssl/ssl3con.c +++ b/mozilla/security/nss/lib/ssl/ssl3con.c @@ -40,7 +40,7 @@ * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */ -/* $Id: ssl3con.c,v 1.166 2012-03-06 00:26:31 wtc%google.com Exp $ */ +/* $Id: ssl3con.c,v 1.167 2012-03-06 02:23:25 wtc%google.com Exp $ */ #include "cert.h" #include "ssl.h" @@ -8613,8 +8613,6 @@ xmit_loser: SECStatus ssl3_FinishHandshake(sslSocket * ss) { - SECStatus rv; - PORT_Assert( ss->opt.noLocks || ssl_HaveRecvBufLock(ss) ); PORT_Assert( ss->opt.noLocks || ssl_HaveSSL3HandshakeLock(ss) ); PORT_Assert( ss->ssl3.hs.restartTarget == NULL ); @@ -8623,9 +8621,9 @@ ssl3_FinishHandshake(sslSocket * ss) ss->handshake = NULL; ss->firstHsDone = PR_TRUE; - if (ss->sec.ci.sid->cached == never_cached && - !ss->opt.noCache && ss->sec.cache && ss->ssl3.hs.cacheSID) { + if (ss->ssl3.hs.cacheSID) { (*ss->sec.cache)(ss->sec.ci.sid); + ss->ssl3.hs.cacheSID = PR_FALSE; } ss->ssl3.hs.ws = idle_handshake;