diff options
author | NIIBE Yutaka <[email protected]> | 2016-05-02 06:56:02 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2016-05-02 06:59:22 +0000 |
commit | 6677d8b61446eb5760a30a2488c992d6e895a9ed (patch) | |
tree | 325dee25db95e2d66ea375805d21a7a8476565c8 /scd/command.c | |
parent | common: Extend log_string to indent lines. (diff) | |
download | gnupg-6677d8b61446eb5760a30a2488c992d6e895a9ed.tar.gz gnupg-6677d8b61446eb5760a30a2488c992d6e895a9ed.zip |
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 <[email protected]>
Diffstat (limited to 'scd/command.c')
-rw-r--r-- | scd/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/command.c b/scd/command.c index 4e80d76b4..72ff1326a 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); } |