[Pcsclite-cvs-commit] r3183 - /trunk/Drivers/ccid/src/commands.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Oct 28 09:24:16 UTC 2008
Author: rousseau
Date: Tue Oct 28 09:24:16 2008
New Revision: 3183
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3183
Log:
SecurePINVerify(): in case of SPR532 and Case 1 APDU we need to set bSeq
again to avoid a "Duplicate frame detected" error since the bSeq of
CmdEscape is now greater than bSeq set at the beginning of this function
Thanks to Peter Koch for the bug report
Modified:
trunk/Drivers/ccid/src/commands.c
Modified: trunk/Drivers/ccid/src/commands.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/commands.c?rev=3183&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/commands.c (original)
+++ trunk/Drivers/ccid/src/commands.c Tue Oct 28 09:24:16 2008
@@ -382,6 +382,11 @@
res_tmp, &res_length);
if (return_value != IFD_SUCCESS)
return return_value;
+
+ /* we need to set bSeq again to avoid a "Duplicate frame detected"
+ * error since the bSeq of CmdEscape is now greater than bSeq set at
+ * the beginning of this function */
+ cmd[6] = (*ccid_descriptor->pbSeq)++;
}
i2dw(a - 10, cmd + 1); /* CCID message length */
More information about the Pcsclite-cvs-commit
mailing list