aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/app.c')
-rw-r--r--scd/app.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/app.c b/scd/app.c
index efaf9ec0b..a23c4a546 100644
--- a/scd/app.c
+++ b/scd/app.c
@@ -367,10 +367,10 @@ select_application (ctrl_t ctrl, int slot, const char *name, app_t *r_app)
}
/* For certain error codes, there is no need to try more. */
- if (gpg_err_code (err) == GPG_ERR_CARD_NOT_PRESENT)
+ if (gpg_err_code (err) == GPG_ERR_CARD_NOT_PRESENT
+ || gpg_err_code (err) == GPG_ERR_ENODEV)
goto leave;
-
/* Figure out the application to use. */
err = gpg_error (GPG_ERR_NOT_FOUND);