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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Aug 27 13:16:46 UTC 2009


Author: rousseau
Date: Thu Aug 27 13:16:46 2009
New Revision: 4366

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4366
Log:
IFDHControl(): return IFD_ERROR_NOT_SUPPORTED instead of
IFD_COMMUNICATION_ERROR if the dwControlCode value is not supported

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=4366&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Thu Aug 27 13:16:46 2009
@@ -1199,12 +1199,12 @@
 	 *
 	 * Notes: RxLength should be zero on error.
 	 */
-	RESPONSECODE return_value = IFD_COMMUNICATION_ERROR;
+	RESPONSECODE return_value = IFD_ERROR_NOT_SUPPORTED;
 	int reader_index;
 
 	reader_index = LunToReaderIndex(Lun);
 	if ((-1 == reader_index) || (NULL == pdwBytesReturned))
-		return return_value;
+		return IFD_COMMUNICATION_ERROR;
 
 	DEBUG_INFO4("ControlCode: 0x%X, %s (lun: %X)", dwControlCode,
 		CcidSlots[reader_index].readerName, Lun);




More information about the Pcsclite-cvs-commit mailing list