aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2012-06-08 04:18:06 +0000
committerNIIBE Yutaka <[email protected]>2012-06-25 01:04:22 +0000
commitc86e9bd1bced85dc72701bb0ab409d5f02b112d1 (patch)
tree10de015c57f4ed02dafb18fe5bb503748dc441bf
parentscd: Fix resetting and closing of the reader. (Backported by gniibe) (diff)
downloadgnupg-c86e9bd1bced85dc72701bb0ab409d5f02b112d1.tar.gz
gnupg-c86e9bd1bced85dc72701bb0ab409d5f02b112d1.zip
scd: Fix the changes of scd/command.c
* scd/command.c (do_reset): Assign slot after setting slot_table.
-rw-r--r--scd/command.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}