[Pcsclite-cvs-commit] Drivers/ccid/src commands.c,1.14,1.15
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv15590/src
Modified Files:
commands.c
Log Message:
set *rx_length to 0 when a ReadPort() error is returned.
The problem was not solved by ccid_usb.c 1.25.
Index: commands.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/commands.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- commands.c 26 May 2004 07:50:07 -0000 1.14
+++ commands.c 26 May 2004 08:56:52 -0000 1.15
@@ -425,7 +425,10 @@
time_request:
length = sizeof(cmd);
if (ReadPort(lun, &length, cmd) != STATUS_SUCCESS)
+ {
+ *rx_length = 0;
return IFD_COMMUNICATION_ERROR;
+ }
if (cmd[STATUS_OFFSET] & CCID_COMMAND_FAILED)
{