[Pkg-gnupg-commit] [gnupg2] 165/205: scd: More fix of error return path.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed May 11 08:38:34 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit 6677d8b61446eb5760a30a2488c992d6e895a9ed
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Mon May 2 15:56:02 2016 +0900
scd: More fix of error return path.
* scd/command.c (open_card): Return GPG_ERR_ENODEV on the failure of
apdu_connect.
--
GnuPG-bug-id: 2306
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
scd/command.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scd/command.c b/scd/command.c
index 4e80d76..72ff132 100644
--- a/scd/command.c
+++ b/scd/command.c
@@ -469,8 +469,8 @@ open_card (ctrl_t ctrl, const char *apptype)
else if (sw == SW_HOST_CARD_INACTIVE)
err = gpg_error (GPG_ERR_CARD_RESET);
else
- err = gpg_error (GPG_ERR_CARD);
- }
+ err = gpg_error (GPG_ERR_ENODEV);
+ }
else
err = select_application (ctrl, slot, apptype, &ctrl->app_ctx);
}
--
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