mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-10 13:04:23 +01:00
scd: Fix check_keypad_request.
* scd/app-openpgp.c (check_keypad_request): 0 means not to use pinpad.
This commit is contained in:
parent
4a2f1e5133
commit
9fec82a30b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user