[Pcsclite-cvs-commit] r6217 - /trunk/Drivers/ccid/src/ifdhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Mon Feb 13 08:54:01 UTC 2012
Author: rousseau
Date: Mon Feb 13 08:54:00 2012
New Revision: 6217
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6217
Log:
IFDHCreateChannelByName(): check the value returned by ccid_open_hack_post()
If ccid_open_hack_post() fails (the strings could not be loaded in a
GEMPCPINPAD reader as in revision 6216) then we return with an error
instead of ignoring the issue.
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=6217&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Mon Feb 13 08:54:00 2012
@@ -146,7 +146,11 @@
ccid_descriptor->readTimeout = oldReadTimeout;
/* Maybe we have a special treatment for this reader */
- (void)ccid_open_hack_post(reader_index);
+ return_value = ccid_open_hack_post(reader_index);
+ if (return_value != IFD_SUCCESS)
+ {
+ DEBUG_CRITICAL("failed");
+ }
}
}
More information about the Pcsclite-cvs-commit
mailing list