aboutsummaryrefslogtreecommitdiff
path: root/lib/libpam
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2020-02-18 11:27:05 +0000
committerCy Schubert <cy@FreeBSD.org>2020-02-18 11:27:05 +0000
commit6f1ed8ae580a902aead0201158834cda3bbb2a31 (patch)
tree0336f4f3708e250bf4245495759157da6777a27b /lib/libpam
parent9c9372ad3f47cfc65d656f2ae6e14284544f2fba (diff)
downloadsrc-6f1ed8ae580a902aead0201158834cda3bbb2a31.tar.gz
src-6f1ed8ae580a902aead0201158834cda3bbb2a31.zip
strchr() returns a pointer not an int.
Reported by: bjk Approved by: des (blanket, implicit) MFC after: 3 days
Notes
Notes: svn path=/head/; revision=358069
Diffstat (limited to 'lib/libpam')
-rw-r--r--lib/libpam/modules/pam_login_access/login_access.c2
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) {