]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Path attribute can be missing if we process a packet with empty NLRI section.
authorMartin Mares <mj@ucw.cz>
Thu, 27 Apr 2000 22:31:11 +0000 (22:31 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 27 Apr 2000 22:31:11 +0000 (22:31 +0000)
proto/bgp/attrs.c

index 74e2ef8d8355ea7d4cd97c8d25ff4ccc5c0a218c..90da497e69892d7ccef4604e3a4e9253e97b28b5 100644 (file)
@@ -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;