From 156d15b93b6940faa38b06fd52add0b3e53a8ad3 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 1 Dec 2003 19:26:32 +0000 Subject: fix inverted logic caused by s/strcmp/strequal/; host allow/deny works again; bug 846 (This used to be commit 18fe1681c15cc25a41e738e615b759d759f9ecf4) --- source3/lib/access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib') 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) -- cgit