scd: Fix check_keypad_request.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 5 Feb 2013 05:59:29 +0000 (14:59 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 5 Feb 2013 06:01:37 +0000 (15:01 +0900)
* scd/app-openpgp.c (check_keypad_request): 0 means not to use pinpad.

scd/app-openpgp.c

index c190098..78cdda3 100644 (file)
@@ -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