mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Path attribute can be missing if we process a packet with empty NLRI section.
This commit is contained in:
parent
8f6accb5bb
commit
54896cbdba
@ -828,8 +828,7 @@ bgp_decode_attrs(struct bgp_conn *conn, byte *attr, unsigned int len, struct lin
|
|||||||
|
|
||||||
/* If the AS path attribute contains our AS, reject the routes */
|
/* If the AS path attribute contains our AS, reject the routes */
|
||||||
e = ea_find(a->eattrs, EA_CODE(EAP_BGP, BA_AS_PATH));
|
e = ea_find(a->eattrs, EA_CODE(EAP_BGP, BA_AS_PATH));
|
||||||
ASSERT(e);
|
if (e && bgp_path_loopy(bgp, e))
|
||||||
if (bgp_path_loopy(bgp, e))
|
|
||||||
{
|
{
|
||||||
DBG("BGP: Path loop!\n");
|
DBG("BGP: Path loop!\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user