aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2021-06-17 07:07:09 +0000
committerNIIBE Yutaka <[email protected]>2021-06-17 07:07:09 +0000
commit7718244168c948171ffd37d7e964cbcd172661c6 (patch)
treead5a272b6471be7cf0946db497b1eafa2748c7d3 /scd/app.c
parentpo: Fix Simplified Chinese Translation. (diff)
downloadgnupg-7718244168c948171ffd37d7e964cbcd172661c6.tar.gz
gnupg-7718244168c948171ffd37d7e964cbcd172661c6.zip
scd: Fix RESET handling.
* scd/app.c (scd_update_reader_status_file): Clear ->reset_requested. -- Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/app.c')
-rw-r--r--scd/app.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/scd/app.c b/scd/app.c
index f03eca79a..113669cb7 100644
--- a/scd/app.c
+++ b/scd/app.c
@@ -2258,7 +2258,11 @@ scd_update_reader_status_file (void)
card_next = card->next;
if (card->reset_requested)
- status = 0;
+ {
+ /* Here is the post-processing of RESET request. */
+ status = 0;
+ card->reset_requested = 0;
+ }
else
{
sw = apdu_get_status (card->slot, 0, &status);