diff options
author | Martin Mares <mj@ucw.cz> | 2000-04-28 00:40:19 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-04-28 00:40:19 +0200 |
commit | f94557dec5714f8415aa9e74615b5c821f45808f (patch) | |
tree | e63d265abc8efec27a70c7d7f66b167b3cc85ff6 /proto/bgp | |
parent | f75e3bbc01f2b711d1a2479eddd9ea35f8cfff47 (diff) | |
download | bird-f94557dec5714f8415aa9e74615b5c821f45808f.tar bird-f94557dec5714f8415aa9e74615b5c821f45808f.zip |
Some more fixes for attributeless UPDATEs.
Diffstat (limited to 'proto/bgp')
-rw-r--r-- | proto/bgp/packets.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |