scd: Fix an action after card removal.
authorNIIBE Yutaka <gniibe@fsij.org>
Sat, 3 Sep 2016 06:27:30 +0000 (15:27 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Sat, 3 Sep 2016 06:27:30 +0000 (15:27 +0900)
commitf9e49c80e706a27d5e30d4b3237ff26367a67130
tree4bc383a6b2f22f54a03d4438afeb8a608f2bc007
parent18a808bccf543d563239f93257aee40aa1b5a475
scd: Fix an action after card removal.

* scd/command.c (update_card_removed): Call apdu_close_reader here.

--

This is update of the commit 8fe81055762d9c9e6f03fb7853a985c94ef73ac3
It is better apdu_close_reader is called in update_card_removed.

The commit 1598a4476466822e7e9c757ac471089d3db4b545 introduced a
regression, it doesn't close the reader after removal of the card, while
the code before the commit call apdu_close_reader in do_reset.
So, this fix.

GnuPG-bug-id: 2449
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/command.c