From 6cc35405abaada82ce0202b57ef9d658997bd792 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 28 Mar 2003 15:42:57 +0000 Subject: [PATCH] fix CIDR hosts allow/deny notation (This used to be commit 0dc611569427c8b63b752d0f62f2127dc1479754) --- source3/lib/access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/access.c b/source3/lib/access.c index 50efdcc5f04..09676dbd58a 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) {