summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-05-09 17:35:42 +0000
committerGerald Carter <jerry@samba.org>2002-05-09 17:35:42 +0000
commit27cd004bf2a6a76a16a7741f7aa97c1f30b3de50 (patch)
treea3ff86d26f3c3e738f8fa351353ab8715b80416f /source3/lib
parentf1554f0847971fca72e911e3774565166f2b07fe (diff)
downloadsamba-27cd004bf2a6a76a16a7741f7aa97c1f30b3de50.tar.gz
samba-27cd004bf2a6a76a16a7741f7aa97c1f30b3de50.tar.bz2
samba-27cd004bf2a6a76a16a7741f7aa97c1f30b3de50.zip
merge from SAMBA_2_2
(This used to be commit c26ce496e88a9a1f93a51fa626f222c98892746f)
Diffstat (limited to 'source3/lib')
-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 f12ee92799..62d47b82cf 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -30,7 +30,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) {