[git] GnuPG - branch, master, updated. gnupg-2.1.15-53-g8fe8105

by NIIBE Yutaka cvs at cvs.gnupg.org
Fri Sep 2 07:52:56 CEST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  8fe81055762d9c9e6f03fb7853a985c94ef73ac3 (commit)
      from  d1ae7103352fbda2a05f098379cd3043a0ab5566 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
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>

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;
 

-----------------------------------------------------------------------

Summary of changes:
 scd/command.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list