Fix bugzilla 268521 - C_CloseSession getting called after C_CloseAllSessions . r=relyea, nelsonb

This commit is contained in:
julien.pierre.bugs%sun.com 2004-11-09 23:19:24 +00:00
Родитель dd6fbad309
Коммит 00d4055ea7
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -413,14 +413,14 @@ PK11_ReferenceSlot(PK11SlotInfo *slot)
void
PK11_DestroySlot(PK11SlotInfo *slot)
{
/* first free up all the sessions on this slot */
/* free up the cached keys and sessions */
PK11_CleanKeyList(slot);
/* free up all the sessions on this slot */
if (slot->functionList) {
PK11_GETTAB(slot)->C_CloseAllSessions(slot->slotID);
}
/* free up the cached keys and sessions */
PK11_CleanKeyList(slot);
if (slot->mechanismList) {
PORT_Free(slot->mechanismList);
}