[Pcsclite-cvs-commit] CVS PKCS11/src
CVS User rousseau
ludovic.rousseau@free.fr
Sat, 22 Jan 2005 09:05:39 -0700
Update of /cvsroot/muscleapps/PKCS11/src
In directory haydn:/tmp/cvs-serv11732
Modified Files:
p11x_slot.c
Log Message:
slot_DisconnectSlot(): avoid a possible infinite loop. Closes bug #300593
--- /cvsroot/muscleapps/PKCS11/src/p11x_slot.c 2004/11/28 14:30:32 1.31
+++ /cvsroot/muscleapps/PKCS11/src/p11x_slot.c 2005/01/22 16:05:39 1.32
@@ -1,6 +1,6 @@
/******************************************************************************
**
-** $Id: p11x_slot.c,v 1.31 2004/11/28 14:30:32 rousseau Exp $
+** $Id: p11x_slot.c,v 1.32 2005/01/22 16:05:39 rousseau Exp $
**
** Package: PKCS-11
** Author : Chris Osgood <oznet@mac.com>
@@ -882,9 +882,12 @@
while (session_l)
{
if (session_l->session.slotID == slotID)
+ {
session_FreeSession(session_l);
-
- session_l = st.sessions;
+ session_l = st.sessions;
+ }
+ else
+ session_l = session_l->next;
}
object_FreeAllObjects(slotID, st.slots[slotID - 1].objects);