summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/parse.y
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-05-31 18:38:59 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-05-31 18:38:59 +0000
commit25b0d1ce27ff8aaca36c843ddad3655e08d3382c (patch)
tree82fc61bbafeb0b3f1b3e4fe841a8009d3d19dd74 /usr.sbin/bgpd/parse.y
parent0e3633f0ffab31dc8a1a9d47a9ef51a923895753 (diff)
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@
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r--usr.sbin/bgpd/parse.y3
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 */