From c86e9bd1bced85dc72701bb0ab409d5f02b112d1 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 8 Jun 2012 13:18:06 +0900 Subject: [PATCH] scd: Fix the changes of scd/command.c * scd/command.c (do_reset): Assign slot after setting slot_table. --- scd/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }