diff --git a/scd/command.c b/scd/command.c index 7865869b1..be0597718 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_table[slot].slot = slot = -1; + slot = slot_table[slot].slot = -1; break; } }