Path attribute can be missing if we process a packet with empty NLRI section.
This commit is contained in:
parent
8f6accb5bb
commit
54896cbdba
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue