diff options
author | 2007-05-31 18:38:58 +0000 | |
---|---|---|
committer | 2007-05-31 18:38:58 +0000 | |
commit | 4ffd8791ca085464fd67134fd5d6319d26eb29da (patch) | |
tree | 60b620f4db2e09f1fea7afbc3da3bf6eea8f0ea3 | |
parent | if poking the controller fails for whatever reason the drives' (diff) | |
download | wireguard-openbsd-4ffd8791ca085464fd67134fd5d6319d26eb29da.tar.xz wireguard-openbsd-4ffd8791ca085464fd67134fd5d6319d26eb29da.zip |
Init community in get_rule() to COMMUNITY_UNSET. get_rule() is called when
set is used inside neighbor or group statements and the result was that
these rules no longer machted everything. Problem found by Jon Morby.
Please commit henning@
-rw-r--r-- | usr.sbin/bgpd/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 8ddf4713f01..e76e4f2a7b1 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.206 2007/05/31 04:06:04 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.207 2007/05/31 18:38:58 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -2695,6 +2695,7 @@ get_rule(enum action_types type) r->quick = 0; r->dir = out ? DIR_OUT : DIR_IN; r->action = ACTION_NONE; + r->match.community.as = COMMUNITY_UNSET; TAILQ_INIT(&r->set); if (curpeer == curgroup) { /* group */ |