[Pcsclite-cvs-commit] CVS Drivers/ccid/src
CVS User rousseau
ludovic.rousseau@free.fr
Mon, 04 Jul 2005 10:17:50 +0000
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv4825
Modified Files:
ifdhandler.c
Log Message:
IFDHControl(): having a NULL RxBuffer is not an error since it is enough
to send the code in dwControlCode
Thanks to Martin Paljak for the patch
--- /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c 2005/06/15 12:55:45 1.78
+++ /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c 2005/07/04 10:17:50 1.79
@@ -17,7 +17,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: ifdhandler.c,v 1.78 2005/06/15 12:55:45 rousseau Exp $ */
+/* $Id: ifdhandler.c,v 1.79 2005/07/04 10:17:50 rousseau Exp $ */
#include <stdio.h>
#include <string.h>
@@ -873,8 +873,7 @@
DEBUG_INFO3("lun: %X, ControlCode: 0x%X", Lun, dwControlCode);
reader_index = LunToReaderIndex(Lun);
- if ((-1 == reader_index) || (NULL == pdwBytesReturned)
- || (NULL == RxBuffer))
+ if ((-1 == reader_index) || (NULL == pdwBytesReturned))
return return_value;
/* Set the return length to 0 to avoid problems */