summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-27 22:31:11 +0000
committerMartin Mares <mj@ucw.cz>2000-04-27 22:31:11 +0000
commit54896cbdba42a2ccd83c7f23c8ba14bed37a8b73 (patch)
treeef41c02f5d428b28c881d31cffbd62c87d095364 /proto
parent8f6accb5bb26d534576e086894c107387f67906a (diff)
Path attribute can be missing if we process a packet with empty NLRI section.
Diffstat (limited to 'proto')
-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 74e2ef8d..90da497e 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;