mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-07 17:33:02 +01:00
scd: Fix the changes of scd/command.c
* scd/command.c (do_reset): Assign slot after setting slot_table.
This commit is contained in:
parent
ffd7ebf629
commit
31584d3659
@ -321,7 +321,7 @@ do_reset (ctrl_t ctrl, int send_reset)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
apdu_close_reader (slot);
|
apdu_close_reader (slot);
|
||||||
slot_table[slot].slot = slot = -1;
|
slot = slot_table[slot].slot = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user