mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 08:47:31 +09:00
Merge remote-tracking branch 'origin/master' into custom
This commit is contained in:
commit
8c7f5dcc57
5 changed files with 19 additions and 24 deletions
|
|
@ -2798,8 +2798,9 @@ sftk_CloseAllSessions(SFTKSlot *slot, PRBool logout)
|
|||
} else {
|
||||
SKIP_AFTER_FORK(PZ_Unlock(lock));
|
||||
}
|
||||
if (session)
|
||||
sftk_FreeSession(session);
|
||||
if (session) {
|
||||
sftk_DestroySession(session);
|
||||
}
|
||||
} while (session != NULL);
|
||||
}
|
||||
return CKR_OK;
|
||||
|
|
@ -4034,8 +4035,6 @@ NSC_CloseSession(CK_SESSION_HANDLE hSession)
|
|||
if (sftkqueue_is_queued(session, hSession, slot->head, slot->sessHashSize)) {
|
||||
sessionFound = PR_TRUE;
|
||||
sftkqueue_delete(session, hSession, slot->head, slot->sessHashSize);
|
||||
session->refCount--; /* can't go to zero while we hold the reference */
|
||||
PORT_Assert(session->refCount > 0);
|
||||
}
|
||||
PZ_Unlock(lock);
|
||||
|
||||
|
|
@ -4056,6 +4055,8 @@ NSC_CloseSession(CK_SESSION_HANDLE hSession)
|
|||
if (session->info.flags & CKF_RW_SESSION) {
|
||||
(void)PR_ATOMIC_DECREMENT(&slot->rwSessionCount);
|
||||
}
|
||||
sftk_DestroySession(session);
|
||||
session = NULL;
|
||||
}
|
||||
|
||||
sftk_FreeSession(session);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue