scd: Fix updating slot status.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 22 Jun 2012 01:51:12 +0000 (10:51 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 25 Jun 2012 01:04:23 +0000 (10:04 +0900)
* scd/comman.c (do_reset): Let clear card_removed flag.

scd/command.c

index 5ef6540..227057e 100644 (file)
@@ -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;
        }
     }