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
commit18fe1681c15cc25a41e738e615b759d759f9ecf4 (patch)
tree051dabfb41f41dfd02cdee44dce61cf41925dd6c
parent1bb2281e177d1f312c0c3c117c5b0dcabe57125b (diff)
downloadsamba-18fe1681c15cc25a41e738e615b759d759f9ecf4.tar.gz
fix inverted logic caused by s/strcmp/strequal/; host allow/deny works again; bug 846
-rw-r--r--source/lib/access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/access.c b/source/lib/access.c
index a642a92d716..81eab7c738e 100644
--- a/source/lib/access.c
+++ b/source/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)