From d1545aba66059b7a65fb46420a6048209cf33620 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 8 Dec 2003 17:42:21 +0000 Subject: make sure we use a real network address in case there are extra non-zero octets in hosts allow/deny (This used to be commit f891d434a1406d18f9842ac6b3d1ea49ee96b9bc) --- source3/lib/access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/lib/access.c b/source3/lib/access.c index 81eab7c738..f03f5daf33 100644 --- a/source3/lib/access.c +++ b/source3/lib/access.c @@ -43,7 +43,7 @@ static BOOL masked_match(const char *tok, const char *slash, const char *s) return (False); } - return ((addr & mask) == net); + return ((addr & mask) == (net & mask)); } /* string_match - match string against token */ -- cgit