Don't reuse sessions that have already be closed.

This commit is contained in:
relyea%netscape.com 2001-09-06 21:19:13 +00:00
parent 951dd94bbe
commit c4c5d7e478

View File

@ -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;
}