[Pcsclite-cvs-commit] r5399 - /trunk/PCSC/src/readerfactory.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Nov 16 10:29:06 UTC 2010


Author: rousseau
Date: Tue Nov 16 10:29:05 2010
New Revision: 5399

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5399
Log:
RFInitializeReader(): if IFDOpenIFD() fails just mark the reader as "not
correctly started". This will present a call to IFDCloseIFD() in
RFUnInitializeReader() (revision 5393)

Modified:
    trunk/PCSC/src/readerfactory.c

Modified: trunk/PCSC/src/readerfactory.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/readerfactory.c?rev=5399&op=diff
==============================================================================
--- trunk/PCSC/src/readerfactory.c (original)
+++ trunk/PCSC/src/readerfactory.c Tue Nov 16 10:29:05 2010
@@ -953,8 +953,9 @@
 	{
 		Log3(PCSC_LOG_CRITICAL, "Open Port 0x%X Failed (%s)",
 			rContext->port, rContext->device);
-		(void)RFUnBindFunctions(rContext);
-		(void)RFUnloadReader(rContext);
+
+		/* the reader was not started correctly */
+		rContext->slot = -1;
 
 		/* IFDOpenIFD() failed */
 		rContext->slot = -1;




More information about the Pcsclite-cvs-commit mailing list