aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/apdu.c')
-rw-r--r--scd/apdu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index 0d7ee777d..a5a0a351e 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -699,6 +699,8 @@ pcsc_get_status (int slot, unsigned int *status, int on_wire)
{
log_error ("pcsc_status failed: %s (0x%lx)\n",
pcsc_error_string (err), err);
+ if (err == PCSC_E_INVALID_VALUE)
+ err = PCSC_E_NO_SMARTCARD;
return pcsc_error_to_sw (err);
}