[Pcsclite-cvs-commit] Drivers/ccid/src ifdhandler.c,1.47,1.48

rousseau@haydn.debian.org rousseau@haydn.debian.org


Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv17340

Modified Files:
	ifdhandler.c 
Log Message:
IFDHICCPresence(): call get_ccid_descriptor() on reader_index instead of Lun


Index: ifdhandler.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- ifdhandler.c	6 Aug 2004 11:23:59 -0000	1.47
+++ ifdhandler.c	6 Aug 2004 11:25:46 -0000	1.48
@@ -872,12 +872,14 @@
 	RESPONSECODE return_value = IFD_COMMUNICATION_ERROR;
 	int oldLogLevel;
 	int reader_index;
-	_ccid_descriptor *ccid_descriptor = get_ccid_descriptor(Lun);
+	_ccid_descriptor *ccid_descriptor;
 
 	DEBUG_PERIODIC2("lun: %X", Lun);
 
 	if (-1 == (reader_index = LunToReaderIndex(Lun)))
 		return IFD_COMMUNICATION_ERROR;
+
+	ccid_descriptor = get_ccid_descriptor(reader_index);
 
 	/* if DEBUG_LEVEL_PERIODIC is not set we remove DEBUG_LEVEL_COMM */
 	oldLogLevel = LogLevel;