mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 12:48:43 +00:00
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.
This commit is contained in:
parent
01dd78f9e9
commit
41b83e52f7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user