[Pcsclite-cvs-commit] r3314 - /trunk/PCSC/src/winscard_clnt.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Feb 9 13:57:37 UTC 2009


Author: rousseau
Date: Mon Feb  9 13:57:37 2009
New Revision: 3314

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3314
Log:
Comment revision 3313 patch

Modified:
    trunk/PCSC/src/winscard_clnt.c

Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=3314&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Mon Feb  9 13:57:37 2009
@@ -535,7 +535,10 @@
 	if (scEstablishStruct.rv != SCARD_S_SUCCESS)
 		return scEstablishStruct.rv;
 
+	/* check we do not reuse an existing phContext */
 	if (-1 != SCardGetContextIndiceTH(scEstablishStruct.phContext))
+		/* we do not need to release the allocated context since
+		 * SCardReleaseContext() does nothing on the server side */
 		goto again;
 
 	*phContext = scEstablishStruct.phContext;




More information about the Pcsclite-cvs-commit mailing list