mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
pam: Allow values bigger than 9 to be used as max tries match
This commit is contained in:
@ -820,7 +820,7 @@ pam_sm_authenticate (pam_handle_t *pamh, int flags, int argc,
|
|||||||
pam_syslog (pamh, LOG_DEBUG, "invalid debug value '%s', disabling", value);
|
pam_syslog (pamh, LOG_DEBUG, "invalid debug value '%s', disabling", value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (str_has_prefix (argv[i], MAX_TRIES_MATCH) && strlen (argv[i]) == strlen (MAX_TRIES_MATCH) + 1)
|
else if (str_has_prefix (argv[i], MAX_TRIES_MATCH) && strlen (argv[i]) > strlen (MAX_TRIES_MATCH))
|
||||||
{
|
{
|
||||||
max_tries = atoi (argv[i] + strlen (MAX_TRIES_MATCH));
|
max_tries = atoi (argv[i] + strlen (MAX_TRIES_MATCH));
|
||||||
if (max_tries < 1)
|
if (max_tries < 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user