summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-27 22:40:19 +0000
committerMartin Mares <mj@ucw.cz>2000-04-27 22:40:19 +0000
commitf94557dec5714f8415aa9e74615b5c821f45808f (patch)
treee63d265abc8efec27a70c7d7f66b167b3cc85ff6
parentf75e3bbc01f2b711d1a2479eddd9ea35f8cfff47 (diff)
Some more fixes for attributeless UPDATEs.
-rw-r--r--proto/bgp/packets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index 0290f93f..47870c6d 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -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)
{