scd: Fix RESET handling.

* scd/app.c (scd_update_reader_status_file): Clear ->reset_requested.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2021-06-17 16:07:09 +09:00
parent 09c62e263b
commit 7718244168
1 changed files with 5 additions and 1 deletions

View File

@ -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);