aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/apdu.c')
-rw-r--r--scd/apdu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index eb3d4b68b..95a25611b 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -3215,9 +3215,12 @@ apdu_close_reader (int slot)
sw = apdu_disconnect (slot);
if (sw)
{
+ /*
+ * When the reader/token was removed it might come here.
+ * It should go through to call CLOSE_READER even if we got an error.
+ */
if (DBG_READER)
- log_debug ("leave: apdu_close_reader => 0x%x (apdu_disconnect)\n", sw);
- return sw;
+ log_debug ("apdu_close_reader => 0x%x (apdu_disconnect)\n", sw);
}
if (reader_table[slot].close_reader)
{