From c4c5d7e478c8be7143edda00cbc3f592948d1135 Mon Sep 17 00:00:00 2001 From: "relyea%netscape.com" Date: Thu, 6 Sep 2001 21:19:13 +0000 Subject: [PATCH] Don't reuse sessions that have already be closed. --- security/nss/lib/pk11wrap/pk11skey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/nss/lib/pk11wrap/pk11skey.c b/security/nss/lib/pk11wrap/pk11skey.c index 4d45c322156b..b74e4487f8a5 100644 --- a/security/nss/lib/pk11wrap/pk11skey.c +++ b/security/nss/lib/pk11wrap/pk11skey.c @@ -171,7 +171,7 @@ pk11_getKeyFromList(PK11SlotInfo *slot) { PK11_USE_THREADS(PZ_Unlock(slot->freeListLock);) if (symKey) { symKey->next = NULL; - if (!symKey->sessionOwner) + if ((symKey->series != slot->series) || (!symKey->sessionOwner)) symKey->session = pk11_GetNewSession(slot,&symKey->sessionOwner); return symKey; }