summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-12-01 19:25:41 +0000
committerGerald Carter <jerry@samba.org>2003-12-01 19:25:41 +0000
commit951e1aa8512baba7d434bfe5505ba3678a7ebac4 (patch)
tree7b8f1fdafd95829f2636b8137915cd8b196add5d /source3/lib
parent716484265def5e0e5f9a939c93d96c16c26f032f (diff)
downloadsamba-951e1aa8512baba7d434bfe5505ba3678a7ebac4.tar.gz
samba-951e1aa8512baba7d434bfe5505ba3678a7ebac4.tar.bz2
samba-951e1aa8512baba7d434bfe5505ba3678a7ebac4.zip
fix inverted logic caused by s/strcmp/strequal/; host allow/deny works again; bug 846
(This used to be commit c816b44a9c1278d756f63044bb3a3bce3afec9b3)
Diffstat (limited to 'source3/lib')
-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)