[Pcsclite-cvs-commit] r2421 - trunk/Drivers/ccid/src
Ludovic Rousseau
rousseau at alioth.debian.org
Thu Feb 22 16:11:49 CET 2007
Author: rousseau
Date: 2007-02-22 16:11:49 +0100 (Thu, 22 Feb 2007)
New Revision: 2421
Modified:
trunk/Drivers/ccid/src/commands.c
Log:
CmdXfrBlockTPDU_T0(): set *rx_length to 0 in case of command too long
Modified: trunk/Drivers/ccid/src/commands.c
===================================================================
--- trunk/Drivers/ccid/src/commands.c 2007-02-22 14:15:37 UTC (rev 2420)
+++ trunk/Drivers/ccid/src/commands.c 2007-02-22 15:11:49 UTC (rev 2421)
@@ -1096,6 +1096,7 @@
{
DEBUG_CRITICAL3("Command too long (%d bytes) for max: %d bytes",
tx_length, ccid_descriptor->dwMaxCCIDMessageLength-10);
+ *rx_length = 0;
return IFD_COMMUNICATION_ERROR;
}
@@ -1104,6 +1105,7 @@
{
DEBUG_CRITICAL3("Command too long (%d bytes) for max: %d bytes",
tx_length, CMD_BUF_SIZE);
+ *rx_length = 0;
return IFD_COMMUNICATION_ERROR;
}
More information about the Pcsclite-cvs-commit
mailing list