diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2020-02-18 11:27:05 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2020-02-18 11:27:05 +0000 |
| commit | 6f1ed8ae580a902aead0201158834cda3bbb2a31 (patch) | |
| tree | 0336f4f3708e250bf4245495759157da6777a27b /lib/libpam | |
| parent | 9c9372ad3f47cfc65d656f2ae6e14284544f2fba (diff) | |
Notes
Diffstat (limited to 'lib/libpam')
| -rw-r--r-- | lib/libpam/modules/pam_login_access/login_access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_login_access/login_access.c b/lib/libpam/modules/pam_login_access/login_access.c index 3f74190d8925..c349c54748e6 100644 --- a/lib/libpam/modules/pam_login_access/login_access.c +++ b/lib/libpam/modules/pam_login_access/login_access.c @@ -252,7 +252,7 @@ from_match(const char *tok, const char *string) && strcasecmp(tok, string + str_len - tok_len) == 0) return (YES); } else if (strcmp(tok, "LOCAL") == 0) { /* local: no dots */ - if (strchr(string, '.') == 0) + if (strchr(string, '.') == NULL) return (YES); } else if (tok[(tok_len = strlen(tok)) - 1] == '.' /* network */ && strncmp(tok, string, tok_len) == 0) { |
