From: Ondrej Zajicek (work) Date: Thu, 25 Oct 2018 09:23:15 +0000 (+0200) Subject: Filter: Fix minor bug in accessing bgp_path X-Git-Tag: v2.0.3~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41b83e52f7f0a0de88c220aab88a4dd31f05fce0;p=thirdparty%2Fbird.git Filter: Fix minor bug in accessing bgp_path Not relevant for regular BGP paths, just for BGP paths added by filters to e.g. static routes. --- diff --git a/filter/filter.c b/filter/filter.c index 0a2c26b8b..edf54ec09 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -1523,7 +1523,7 @@ interpret(struct f_inst *what) /* 0x02 is a value of BA_AS_PATH, we don't want to include BGP headers */ eattr *e = ea_find(*f_eattrs, EA_CODE(PROTOCOL_BGP, 0x02)); - if (!e || e->type != EAF_TYPE_AS_PATH) + if (!e || ((e->type & EAF_TYPE_MASK) != EAF_TYPE_AS_PATH)) runtime("Missing AS_PATH attribute"); as_path_get_last(e->u.ptr, &as);