aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2009-07-16 15:54:59 +0000
committerWerner Koch <[email protected]>2009-07-16 15:54:59 +0000
commite49d808e1f02d8f01c60753022bc20664b215062 (patch)
treedd65f9e2f0eb20d949e56852c22ee3cb0aba31a9 /scd/app.c
parent[g10] (diff)
downloadgnupg-e49d808e1f02d8f01c60753022bc20664b215062.tar.gz
gnupg-e49d808e1f02d8f01c60753022bc20664b215062.zip
Add code to better handle unplugging of a reader.
Diffstat (limited to '')
-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);