aboutsummaryrefslogtreecommitdiffstats
path: root/scd/iso7816.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/iso7816.c')
-rw-r--r--scd/iso7816.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scd/iso7816.c b/scd/iso7816.c
index 8f5ce5c52..75aa8de3d 100644
--- a/scd/iso7816.c
+++ b/scd/iso7816.c
@@ -94,6 +94,8 @@ map_sw (int sw)
ec = GPG_ERR_GENERAL; /* Should not happen. */
else if ((sw & 0xff00) == SW_MORE_DATA)
ec = 0; /* This should actually never been seen here. */
+ else if ((sw & 0xfff0) == 0x63C0)
+ ec = GPG_ERR_BAD_PIN;
else
ec = GPG_ERR_CARD;
}