summaryrefslogtreecommitdiff
path: root/source/lib/access.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-06-17 18:36:36 +0000
committerGerald Carter <jerry@samba.org>2002-06-17 18:36:36 +0000
commit1e6e5b299c235b513095a76a4cd9fffc41e8fc9c (patch)
tree9f741529073ad411cc7328334e26d3e35b1d33f1 /source/lib/access.c
parenta11c5d7ad07d259d764aede4745d13f8163a8212 (diff)
downloadsamba-1e6e5b299c235b513095a76a4cd9fffc41e8fc9c.tar.gz
beginning to sync up for 2.2.5 release....
Diffstat (limited to 'source/lib/access.c')
-rw-r--r--source/lib/access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/access.c b/source/lib/access.c
index 73b4d57e706..8bf3ba19337 100644
--- a/source/lib/access.c
+++ b/source/lib/access.c
@@ -33,7 +33,7 @@ static int masked_match(char *tok, char *slash, char *s)
if (strlen(slash + 1) > 2) {
mask = interpret_addr(slash + 1);
} else {
- mask = (uint32)((ALLONES >> atoi(slash + 1)) ^ ALLONES);
+ mask = (uint32)((ALLONES << atoi(slash + 1)) ^ ALLONES);
}
if (net == INADDR_NONE || mask == INADDR_NONE) {