summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-12-01 19:26:32 +0000
committerGerald Carter <jerry@samba.org>2003-12-01 19:26:32 +0000
commit156d15b93b6940faa38b06fd52add0b3e53a8ad3 (patch)
tree3466d086c3d9940f53b3e01153676731a7ae6658
parent6c41d202d1eeff5f7687c23cd5e5d6271d3b5ca0 (diff)
downloadsamba-156d15b93b6940faa38b06fd52add0b3e53a8ad3.tar.gz
samba-156d15b93b6940faa38b06fd52add0b3e53a8ad3.tar.bz2
samba-156d15b93b6940faa38b06fd52add0b3e53a8ad3.zip
fix inverted logic caused by s/strcmp/strequal/; host allow/deny works again; bug 846
(This used to be commit 18fe1681c15cc25a41e738e615b759d759f9ecf4)
-rw-r--r--source3/lib/access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c
index a642a92d71..81eab7c738 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -114,7 +114,7 @@ static BOOL string_match(const char *tok,const char *s, char *invalid_char)
} else if (strequal(tok, "LOCAL")) { /* local: no dots */
if (strchr_m(s, '.') == 0 && !strequal(s, "unknown"))
return (True);
- } else if (!strequal(tok, s)) { /* match host name or address */
+ } else if (strequal(tok, s)) { /* match host name or address */
return (True);
} else if (tok[(tok_len = strlen(tok)) - 1] == '.') { /* network */
if (strncmp(tok, s, tok_len) == 0)