[Pcsclite-cvs-commit] PCSC/src winscard_svc.c,1.7,1.8

sauveron-guest@quantz.debian.org sauveron-guest@quantz.debian.org
Mon, 13 Oct 2003 22:26:06 +0200


Update of /cvsroot/pcsclite/PCSC/src
In directory quantz:/tmp/cvs-serv4676/src

Modified Files:
	winscard_svc.c 
Log Message:
Add a verification before to release a context.

Index: winscard_svc.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/winscard_svc.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- winscard_svc.c	24 Sep 2003 11:17:06 -0000	1.7
+++ winscard_svc.c	13 Oct 2003 20:26:03 -0000	1.8
@@ -297,7 +297,8 @@
 
 	for (i = 0; i < PCSCLITE_MAX_CHANNELS; i++)
 	{
-		if (psChannelMap[i].dwClientID == dwClientID)
+		if (psChannelMap[i].hContext == hContext &&
+			psChannelMap[i].dwClientID == dwClientID)
 		{
 			for (j = 0; j < PCSCLITE_MAX_CONTEXTS; j++)
 			{