aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2012-06-22 01:51:12 +0000
committerNIIBE Yutaka <[email protected]>2012-06-22 01:51:12 +0000
commita90f0fca554a679e1c09b0c11ed80311a9358a9d (patch)
tree970092ddbedd6e51e5b341bde50f0cebbfd6b828
parentscd: acquire lock in new_reader_slot. (diff)
downloadgnupg-a90f0fca554a679e1c09b0c11ed80311a9358a9d.tar.gz
gnupg-a90f0fca554a679e1c09b0c11ed80311a9358a9d.zip
scd: Fix updating slot status.
* scd/comman.c (do_reset): Let clear card_removed flag.
-rw-r--r--scd/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/command.c b/scd/command.c
index 5ef6540da..227057edf 100644
--- a/scd/command.c
+++ b/scd/command.c
@@ -321,7 +321,7 @@ do_reset (ctrl_t ctrl, int send_reset)
break;
default:
apdu_close_reader (slot);
- slot = slot_table[slot].slot = -1;
+ slot_table[slot].slot = -1;
break;
}
}