[Pkg-gnupg-commit] [gnupg2] 53/118: scd: Release the card reader after card removal.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Sep 15 18:25:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch encoding-and-speling
in repository gnupg2.
commit 8fe81055762d9c9e6f03fb7853a985c94ef73ac3
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Fri Sep 2 14:45:26 2016 +0900
scd: Release the card reader after card removal.
* scd/command.c (update_reader_status_file): Call apdu_close_reader.
--
GnuPG-bug-id: 2651
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
scd/command.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scd/command.c b/scd/command.c
index 239480b..2909330 100644
--- a/scd/command.c
+++ b/scd/command.c
@@ -2340,7 +2340,10 @@ update_reader_status_file (int set_card_removed_flag)
/* Set the card removed flag for all current sessions. */
if (vr->any && vr->status == 0 && set_card_removed_flag)
- update_card_removed (idx, 1);
+ {
+ apdu_close_reader (vr->slot);
+ update_card_removed (idx, 1);
+ }
vr->any = 1;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list