[Pcsclite-cvs-commit] r2108 - trunk/Drivers/ccid/src

Ludovic Rousseau rousseau at costa.debian.org
Wed Jul 12 08:21:08 UTC 2006


Author: rousseau
Date: 2006-07-12 08:21:07 +0000 (Wed, 12 Jul 2006)
New Revision: 2108

Modified:
   trunk/Drivers/ccid/src/commands.c
Log:
SetParameters(): do not fail if the command fails to set a parameter
that is not changeable by the CCID


Modified: trunk/Drivers/ccid/src/commands.c
===================================================================
--- trunk/Drivers/ccid/src/commands.c	2006-07-11 18:35:25 UTC (rev 2107)
+++ trunk/Drivers/ccid/src/commands.c	2006-07-12 08:21:07 UTC (rev 2108)
@@ -1437,7 +1437,11 @@
 		if (0x00 == cmd[ERROR_OFFSET])	/* command not supported */
 			return IFD_NOT_SUPPORTED;
 		else
-			return IFD_COMMUNICATION_ERROR;
+			if ((cmd[ERROR_OFFSET] >= 1) && (cmd[ERROR_OFFSET] <= 127))
+				/* a parameter is not changeable */
+				return IFD_SUCCESS;
+			else
+				return IFD_COMMUNICATION_ERROR;
 	}
 
 	return IFD_SUCCESS;




More information about the Pcsclite-cvs-commit mailing list