scd: Fix the changes of scd/command.c
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 8 Jun 2012 04:18:06 +0000 (13:18 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 25 Jun 2012 01:04:22 +0000 (10:04 +0900)
* scd/command.c (do_reset): Assign slot after setting slot_table.

scd/command.c

index 7865869..be05977 100644 (file)
@@ -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;
        }
     }