summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-09-17 13:35:37 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-09-17 13:35:37 +0200
commitf4c6ca8c9c7ca7c0d481e6059396beed6adc768d (patch)
tree546a2c3bea59331c83de09a80c6a575353effb28 /nest
parent0781e9c62cd34175eb4e3bc61ffe785d08538727 (diff)
Fixes preference bounds.
Diffstat (limited to 'nest')
-rw-r--r--nest/config.Y2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/config.Y b/nest/config.Y
index ad45a0d5..a2c44ab7 100644
--- a/nest/config.Y
+++ b/nest/config.Y
@@ -132,7 +132,7 @@ proto_name:
proto_item:
/* EMPTY */
| PREFERENCE expr {
- if ($2 < 0 || $2 > 255) cf_error("Invalid preference");
+ if ($2 < 0 || $2 > 0xFFFF) cf_error("Invalid preference");
this_proto->preference = $2;
}
| DISABLED bool { this_proto->disabled = $2; }