diff options
author | Martin Mares <mj@ucw.cz> | 2000-04-28 00:31:11 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-04-28 00:31:11 +0200 |
commit | 54896cbdba42a2ccd83c7f23c8ba14bed37a8b73 (patch) | |
tree | ef41c02f5d428b28c881d31cffbd62c87d095364 /proto | |
parent | 8f6accb5bb26d534576e086894c107387f67906a (diff) | |
download | bird-54896cbdba42a2ccd83c7f23c8ba14bed37a8b73.tar bird-54896cbdba42a2ccd83c7f23c8ba14bed37a8b73.zip |
Path attribute can be missing if we process a packet with empty NLRI section.
Diffstat (limited to 'proto')
-rw-r--r-- | proto/bgp/attrs.c | 3 |
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; |