[Pcsclite-cvs-commit] r6216 - /trunk/Drivers/ccid/src/ccid.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Mon Feb 13 08:40:34 UTC 2012
Author: rousseau
Date: Mon Feb 13 08:40:33 2012
New Revision: 6216
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6216
Log:
ccid_open_hack_post(): return an error if needed
Return IFD_COMMUNICATION_ERROR if it is not possible to load the strings
in a GEMPCPINPAD reader. This happens if the reader is deconnected
during this step.
Modified:
trunk/Drivers/ccid/src/ccid.c
Modified: trunk/Drivers/ccid/src/ccid.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ccid.c?rev=6216&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ccid.c (original)
+++ trunk/Drivers/ccid/src/ccid.c Mon Feb 13 08:40:33 2012
@@ -119,6 +119,7 @@
int ccid_open_hack_post(unsigned int reader_index)
{
_ccid_descriptor *ccid_descriptor = get_ccid_descriptor(reader_index);
+ RESPONSECODE return_value = IFD_SUCCESS;
switch (ccid_descriptor->readerID)
{
@@ -323,6 +324,7 @@
else
{
DEBUG_COMM("Failed to load l10n strings");
+ return_value = IFD_COMMUNICATION_ERROR;
}
}
break;
@@ -375,7 +377,7 @@
#endif
}
- return 0;
+ return return_value;
} /* ccid_open_hack_post */
/*****************************************************************************
More information about the Pcsclite-cvs-commit
mailing list