summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/access.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c
index 09676dbd58..9d07893c2f 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -40,6 +40,10 @@ static BOOL masked_match(const char *tok, const char *slash, const char *s)
DEBUG(0,("access: bad net/mask access control: %s\n", tok));
return (False);
}
+
+ /* convert to network byte order */
+ mask = htonl(mask);
+
return ((addr & mask) == net);
}