summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjulien.pierre.bugs%sun.com <devnull@localhost>2005-01-20 21:58:11 +0000
committerjulien.pierre.bugs%sun.com <devnull@localhost>2005-01-20 21:58:11 +0000
commit41027c43ce3e127d9fcc78f6391a08050fcbd24e (patch)
tree99cac5cc2d9ed82cb1a30647ddfcdb79cece5fa1
parente782bced790326585cd7d3e5b3d80a5f640b58f4 (diff)
downloadnss-hg-41027c43ce3e127d9fcc78f6391a08050fcbd24e.tar.gz
Fix for 273993 - SSL client cache grows with non-restartable sessions. r=nelson, saul
-rw-r--r--security/nss/lib/ssl/sslnonce.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/security/nss/lib/ssl/sslnonce.c b/security/nss/lib/ssl/sslnonce.c
index 79e6c24c8..05bc90546 100644
--- a/security/nss/lib/ssl/sslnonce.c
+++ b/security/nss/lib/ssl/sslnonce.c
@@ -219,6 +219,11 @@ CacheSID(sslSessionID *sid)
if (sid->cached == in_client_cache)
return;
+ if (!sid->urlSvrName) {
+ /* don't cache this SID because it can never be matched */
+ return;
+ }
+
/* XXX should be different trace for version 2 vs. version 3 */
if (sid->version < SSL_LIBRARY_VERSION_3_0) {
expirationPeriod = ssl_sid_timeout;