mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
scd: More fix of error return path.
* scd/command.c (open_card): Return GPG_ERR_ENODEV on the failure of apdu_connect. -- Backport of master commit: 6677d8b61446eb5760a30a2488c992d6e895a9ed GnuPG-bug-id: 2306 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
d87699597f
commit
51464a0ead
@ -482,8 +482,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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user