From f94557dec5714f8415aa9e74615b5c821f45808f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 27 Apr 2000 22:40:19 +0000 Subject: Some more fixes for attributeless UPDATEs. --- proto/bgp/packets.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 0290f93..47870c6 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) { -- cgit v1.2.3