From: phessler Date: Mon, 26 Jun 2017 10:04:21 +0000 (+0000) Subject: allow setting localpref to 0 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c781e354ee18f6337ceeaddd51516df35bac724b;p=openbsd allow setting localpref to 0 from Job Snijders ok phessler@ benno@ --- 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 @@ -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 {