mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
Don't reuse sessions that have already be closed.
This commit is contained in:
parent
951dd94bbe
commit
c4c5d7e478
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user