[Pcsclite-cvs-commit] r6399 - /trunk/Drivers/ccid/src/ifdhandler.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Aug 2 18:06:39 UTC 2012


Author: rousseau
Date: Thu Aug  2 18:06:38 2012
New Revision: 6399

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6399
Log:
CreateChannelByNameOrChannel(): check device exists for the first
CmdGetSlotStatus()

Modified:
    trunk/Drivers/ccid/src/ifdhandler.c

Modified: trunk/Drivers/ccid/src/ifdhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ifdhandler.c?rev=6399&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Thu Aug  2 18:06:38 2012
@@ -138,7 +138,9 @@
 		 * few tries. It is an empirical hack */
 
 		/* The reader may have to start here so give it some time */
-		CmdGetSlotStatus(reader_index, pcbuffer);
+		ret = CmdGetSlotStatus(reader_index, pcbuffer);
+		if (IFD_NO_SUCH_DEVICE == ret)
+			return ret;
 
 		/* save the current read timeout computed from card capabilities */
 		oldReadTimeout = ccid_descriptor->readTimeout;




More information about the Pcsclite-cvs-commit mailing list