diff options
author | 2017-06-26 10:04:21 +0000 | |
---|---|---|
committer | 2017-06-26 10:04:21 +0000 | |
commit | c781e354ee18f6337ceeaddd51516df35bac724b (patch) | |
tree | 110555067c06f05e225bc4aef396ed5adddde836 | |
parent | Assert that the corresponding socket is locked when manipulating socket (diff) | |
download | wireguard-openbsd-c781e354ee18f6337ceeaddd51516df35bac724b.tar.xz wireguard-openbsd-c781e354ee18f6337ceeaddd51516df35bac724b.zip |
allow setting localpref to 0
from Job Snijders
ok phessler@ benno@
-rw-r--r-- | usr.sbin/bgpd/parse.y | 4 |
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 { |