summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-05-31 17:27:46 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2011-05-31 17:27:46 +0200
commit61c96d724464ee067e589b72ca9d10a2f7692901 (patch)
tree170c9260a00c64cdd9643ec4b7df4dad4ab20369
parent5e9bdac28ec95172b0c31641507f6a2fcd2e95fb (diff)
downloadbird-61c96d724464ee067e589b72ca9d10a2f7692901.tar
bird-61c96d724464ee067e589b72ca9d10a2f7692901.zip
Fixes bug that causes crash with strange BGP updates.
-rw-r--r--proto/bgp/packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index 0b41244..c3a8673 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -862,7 +862,7 @@ bgp_do_rx_update(struct bgp_conn *conn,
if (conn->state != BS_ESTABLISHED) /* fatal error during decoding */
return;
- if (a0 && bgp_set_next_hop(p, a0))
+ if (a0 && nlri_len && bgp_set_next_hop(p, a0))
a = rta_lookup(a0);
while (nlri_len)