[Pkg-gnupg-commit] [gnupg2] 22/185: scd: Fix error code on failure at usb_init.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Aug 7 11:55:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 8defb21d34410d000c8b776e0e3a1edd04762638
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Wed May 31 10:05:36 2017 +0900

    scd: Fix error code on failure at usb_init.
    
    * scd/ccid-driver.c (ccid_dev_scan): Return GPG_ERR_ENODEV.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 scd/ccid-driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c
index 1d5e8f2..ce6133f 100644
--- a/scd/ccid-driver.c
+++ b/scd/ccid-driver.c
@@ -1306,7 +1306,7 @@ ccid_dev_scan (int *idx_max_p, struct ccid_dev_table **t_p)
       if ((rc = libusb_init (NULL)))
         {
           DEBUGOUT_1 ("usb_init failed: %s.\n", libusb_error_name (rc));
-          return gpg_error (GPG_ERR_NOT_FOUND);
+          return gpg_error (GPG_ERR_ENODEV);
         }
       initialized_usb = 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