]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Some more fixes for attributeless UPDATEs.
authorMartin Mares <mj@ucw.cz>
Thu, 27 Apr 2000 22:40:19 +0000 (22:40 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 27 Apr 2000 22:40:19 +0000 (22:40 +0000)
proto/bgp/packets.c

index 0290f93f2400776c18fabb3cba3ee51e21697da8..47870c6d89d6f9eab3c388c2fa7f7d51f8067ba2 100644 (file)
@@ -373,6 +373,9 @@ bgp_rx_update(struct bgp_conn *conn, byte *pkt, int len)
        rte_update(bgp->p.table, n, &bgp->p, NULL);
     }
 
+  if (!attr_len && !nlri_len)          /* shortcut */
+    return;
+
   a0 = bgp_decode_attrs(conn, attrs, attr_len, bgp_linpool, nlri_len);
   if (a0 && nlri_len)
     {