mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-18 10:28:07 +02:00
pam: Fix rhost string length check
This commit is contained in:
parent
c0ba475fbf
commit
96444b4156
1 changed files with 1 additions and 1 deletions
|
|
@ -481,7 +481,7 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,
|
|||
* "localhost" if the host is local.
|
||||
* We want to not run for known remote hosts */
|
||||
if (rhost != NULL &&
|
||||
rhost != '\0' &&
|
||||
*rhost != '\0' &&
|
||||
strcmp (rhost, "localhost") != 0) {
|
||||
return PAM_AUTHINFO_UNAVAIL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue