[Pcsclite-cvs-commit] r1700 - trunk/Drivers/ccid/src
Ludovic Rousseau
rousseau at costa.debian.org
Sun Oct 30 14:43:17 UTC 2005
Author: rousseau
Date: 2005-10-30 14:43:16 +0000 (Sun, 30 Oct 2005)
New Revision: 1700
Modified:
trunk/Drivers/ccid/src/commands.c
Log:
SecurePINModify(): do not copy the ulDataLength field to the CCID frame
Modified: trunk/Drivers/ccid/src/commands.c
===================================================================
--- trunk/Drivers/ccid/src/commands.c 2005-10-30 14:40:42 UTC (rev 1699)
+++ trunk/Drivers/ccid/src/commands.c 2005-10-30 14:43:16 UTC (rev 1700)
@@ -316,6 +316,11 @@
continue;
}
+ if ((b >= 20) && (b <= 23)) /* ulDataLength field (4 bytes) */
+ /* the ulDataLength field is not present in the CCID frame
+ * so do not copy */
+ continue;
+
/* copy to the CCID block 'verbatim' */
cmd[a] = TxBuffer[b];
a++;
More information about the Pcsclite-cvs-commit
mailing list