summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/confbase.Y2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/confbase.Y b/conf/confbase.Y
index c303add..7ac07fe 100644
--- a/conf/confbase.Y
+++ b/conf/confbase.Y
@@ -111,7 +111,7 @@ bool:
pxlen:
'/' NUM {
- if ($2 < 0 || $2 > 32) cf_error("Invalid prefix length %d", $2);
+ if ($2 < 0 || $2 > BITS_PER_IP_ADDRESS) cf_error("Invalid prefix length %d", $2);
$$ = $2;
}
| ':' IPA {