summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2017-06-26 10:04:22 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2017-06-26 10:04:22 +0000
commit98ed4c32e3d3d44e9dc7a169727fb1f2290f4a00 (patch)
treeda0996a9d7984e3ee679de930d99c3f5fc971d04 /usr.sbin/bgpd
parentec3b783a00cd99146e96e03e43f820de8b74d5bf (diff)
allow setting localpref to 0
from Job Snijders ok phessler@ benno@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index 6dff3ef927f..ce06f4d7d0d 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.309 2017/05/31 20:01:51 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.310 2017/06/26 10:04:21 phessler Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1988,7 +1988,7 @@ filter_set_opt : LOCALPREF NUMBER {
}
if (($$ = calloc(1, sizeof(struct filter_set))) == NULL)
fatal(NULL);
- if ($2 > 0) {
+ if ($2 >= 0) {
$$->type = ACTION_SET_LOCALPREF;
$$->action.metric = $2;
} else {