summaryrefslogtreecommitdiffstats
path: root/scd
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2013-02-05 06:59:29 +0100
committerNIIBE Yutaka <gniibe@fsij.org>2013-02-05 06:59:29 +0100
commitc27315fc6466cceb862c9e67755a8e044e9b7688 (patch)
tree22c146bbbbd65bcd4243e8b7a5ce7f451b98c431 /scd
parentSCD: Add vendor specific initalization. (diff)
downloadgnupg2-c27315fc6466cceb862c9e67755a8e044e9b7688.tar.xz
gnupg2-c27315fc6466cceb862c9e67755a8e044e9b7688.zip
scd: Fix check_keypad_request.
* scd/app-openpgp.c (check_keypad_request): 0 means not to use pinpad.
Diffstat (limited to 'scd')
-rw-r--r--scd/app-openpgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index dc35295e4..36938337e 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -1554,7 +1554,7 @@ check_keypad_request (app_t app, pininfo_t *pininfo, int admin_pin)
else
pininfo->fixedlen = app->app_local->keypad.fixedlen_user;
- if (pininfo->fixedlen < 0 /* User requests disable pinpad. */
+ if (pininfo->fixedlen == 0 /* User requests disable pinpad. */
|| pininfo->fixedlen < pininfo->minlen
|| pininfo->fixedlen > pininfo->maxlen
/* Reader doesn't have the capability to input a PIN which