mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-08 05:28:03 +02:00
pam: Fix PAM authentication when it's the last try
We need to make sure that the max_tries variable isn't decremented
further when we have success in the verification loop. Add missing break
to do that.
Fixes: affffaf134
Closes: #40
This commit is contained in:
parent
319d859107
commit
f745c49112
1 changed files with 1 additions and 0 deletions
|
|
@ -417,6 +417,7 @@ do_verify (pam_handle_t *pamh,
|
|||
ret = PAM_AUTH_ERR;
|
||||
} else if (str_equal (data->result, "verify-match")) {
|
||||
ret = PAM_SUCCESS;
|
||||
break;
|
||||
} else if (str_equal (data->result, "verify-unknown-error")) {
|
||||
ret = PAM_AUTHINFO_UNAVAIL;
|
||||
} else if (str_equal (data->result, "verify-disconnected")) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue