summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-03-28 15:42:57 +0000
committerGerald Carter <jerry@samba.org>2003-03-28 15:42:57 +0000
commit6cc35405abaada82ce0202b57ef9d658997bd792 (patch)
tree21dd5d4c1c091f49dd4a2c4974586b6545a5b11b /source3/lib
parenta959e5c44a84cd2e4924832aadd024bdccc49207 (diff)
downloadsamba-6cc35405abaada82ce0202b57ef9d658997bd792.tar.gz
samba-6cc35405abaada82ce0202b57ef9d658997bd792.tar.bz2
samba-6cc35405abaada82ce0202b57ef9d658997bd792.zip
fix CIDR hosts allow/deny notation
(This used to be commit 0dc611569427c8b63b752d0f62f2127dc1479754)
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 50efdcc5f0..09676dbd58 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -33,7 +33,7 @@ static BOOL masked_match(const char *tok, const char *slash, const 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) {