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

Ludovic Rousseau rousseau at alioth.debian.org
Tue Feb 20 14:34:44 CET 2007


Author: rousseau
Date: 2007-02-20 14:34:44 +0100 (Tue, 20 Feb 2007)
New Revision: 2406

Modified:
   trunk/Drivers/ccid/src/commands.c
Log:
SecurePINModify(): set bNumberMessages in all cases


Modified: trunk/Drivers/ccid/src/commands.c
===================================================================
--- trunk/Drivers/ccid/src/commands.c	2007-02-20 13:25:41 UTC (rev 2405)
+++ trunk/Drivers/ccid/src/commands.c	2007-02-20 13:34:44 UTC (rev 2406)
@@ -444,11 +444,11 @@
 
 		/* the reader does not support any other value than 3 for the number
 		 * of messages */
+		bNumberMessages = TxBuffer[11];
 		if (0x03 != TxBuffer[11])
 		{
 			DEBUG_INFO2("Correct bNumberMessages for GemPC Pinpad (was %d)",
 				TxBuffer[11]);
-			bNumberMessages = TxBuffer[11];
 			TxBuffer[11] = 0x03; /* 3 messages */
 		}
 	}




More information about the Pcsclite-cvs-commit mailing list