1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Fixes preference bounds.

This commit is contained in:
Ondrej Zajicek
2009-09-17 13:35:37 +02:00
parent 0781e9c62c
commit f4c6ca8c9c
3 changed files with 4 additions and 2 deletions

View File

@@ -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; }