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

Ludovic Rousseau rousseau at alioth.debian.org
Thu Feb 22 15:15:37 CET 2007


Author: rousseau
Date: 2007-02-22 15:15:37 +0100 (Thu, 22 Feb 2007)
New Revision: 2420

Modified:
   trunk/Drivers/ccid/src/commands.c
Log:
CmdXfrBlockTPDU_T0(): set *rx_length to 0 if CCID_Transmit() fails


Modified: trunk/Drivers/ccid/src/commands.c
===================================================================
--- trunk/Drivers/ccid/src/commands.c	2007-02-21 22:13:47 UTC (rev 2419)
+++ trunk/Drivers/ccid/src/commands.c	2007-02-22 14:15:37 UTC (rev 2420)
@@ -1109,7 +1109,10 @@
 
 	return_value = CCID_Transmit(reader_index, tx_length, tx_buffer, 0, 0);
 	if (return_value != IFD_SUCCESS)
+	{
+		*rx_length = 0;
 		return return_value;
+	}
 
 	return CCID_Receive(reader_index, rx_length, rx_buffer, NULL);
 } /* CmdXfrBlockTPDU_T0 */




More information about the Pcsclite-cvs-commit mailing list