summaryrefslogtreecommitdiff
path: root/source3/lib/access.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/access.c')
-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 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 */