[Pcsclite-cvs-commit] r3416 - /trunk/Drivers/ccid/src/ifdhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Apr 9 12:42:35 UTC 2009
Author: rousseau
Date: Thu Apr 9 12:42:34 2009
New Revision: 3416
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3416
Log:
IFDHCreateChannelByname() & IFDHCreateChannel(): do not call
ccid_open_hack_post() if the 3 IFDHICCPresence() failed and we closed
the reader
Modified:
trunk/Drivers/ccid/src/ifdhandler.c
Modified: trunk/Drivers/ccid/src/ifdhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ifdhandler.c?rev=3416&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Thu Apr 9 12:42:34 2009
@@ -126,9 +126,9 @@
(void)ClosePort(reader_index);
ReleaseReaderIndex(reader_index);
}
-
- /* Maybe we have a special treatment for this reader */
- (void)ccid_open_hack_post(reader_index);
+ else
+ /* Maybe we have a special treatment for this reader */
+ (void)ccid_open_hack_post(reader_index);
}
#ifdef HAVE_PTHREAD
@@ -228,9 +228,9 @@
(void)ClosePort(reader_index);
ReleaseReaderIndex(reader_index);
}
-
- /* Maybe we have a special treatment for this reader */
- (void)ccid_open_hack_post(reader_index);
+ else
+ /* Maybe we have a special treatment for this reader */
+ (void)ccid_open_hack_post(reader_index);
}
#ifdef HAVE_PTHREAD
More information about the Pcsclite-cvs-commit
mailing list