[Pcsclite-cvs-commit] Drivers/ccid/src ifdhandler.c,1.4,1.5
rousseau@quantz.debian.org
rousseau@quantz.debian.org
Thu, 11 Dec 2003 22:19:49 +0100
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory quantz:/tmp/cvs-serv24620
Modified Files:
ifdhandler.c
Log Message:
set the result buffer length to 0 in IFDHControl()
Index: ifdhandler.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ifdhandler.c 25 Nov 2003 22:55:58 -0000 1.4
+++ ifdhandler.c 11 Dec 2003 21:19:46 -0000 1.5
@@ -462,6 +462,10 @@
/* if (CheckLun(Lun))
return IFD_COMMUNICATION_ERROR; */
+ /* Set the return length to 0 to avoid problems */
+ if (RxLength)
+ *RxLength = 0;
+
return IFD_SUCCESS;
} /* IFDHControl */