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