aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2013-02-05 05:59:29 +0000
committerNIIBE Yutaka <[email protected]>2013-02-05 06:01:37 +0000
commit9fec82a30bec953b09548840dac4e8999310498e (patch)
treef29b993b62106fe526b097cbd3ee32499aa04a95
parentscd: Clean up. (diff)
downloadgnupg-9fec82a30bec953b09548840dac4e8999310498e.tar.gz
gnupg-9fec82a30bec953b09548840dac4e8999310498e.zip
scd: Fix check_keypad_request.
* scd/app-openpgp.c (check_keypad_request): 0 means not to use pinpad.
-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 c19009889..78cdda3e7 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