summaryrefslogtreecommitdiffstats
path: root/proto/bgp
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-28 00:31:11 +0200
committerMartin Mares <mj@ucw.cz>2000-04-28 00:31:11 +0200
commit54896cbdba42a2ccd83c7f23c8ba14bed37a8b73 (patch)
treeef41c02f5d428b28c881d31cffbd62c87d095364 /proto/bgp
parent8f6accb5bb26d534576e086894c107387f67906a (diff)
downloadbird-54896cbdba42a2ccd83c7f23c8ba14bed37a8b73.tar
bird-54896cbdba42a2ccd83c7f23c8ba14bed37a8b73.zip
Path attribute can be missing if we process a packet with empty NLRI section.
Diffstat (limited to 'proto/bgp')
-rw-r--r--proto/bgp/attrs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c
index 74e2ef8..90da497 100644
--- a/proto/bgp/attrs.c
+++ b/proto/bgp/attrs.c
@@ -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 */
e = ea_find(a->eattrs, EA_CODE(EAP_BGP, BA_AS_PATH));
- ASSERT(e);
- if (bgp_path_loopy(bgp, e))
+ if (e && bgp_path_loopy(bgp, e))
{
DBG("BGP: Path loop!\n");
return NULL;