summaryrefslogtreecommitdiff
path: root/source/lib/access.c
diff options
context:
space:
mode:
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) {