From: Ondrej Zajicek Date: Tue, 31 May 2011 15:27:46 +0000 (+0200) Subject: Fixes bug that causes crash with strange BGP updates. X-Git-Tag: v1.3.2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61c96d724464ee067e589b72ca9d10a2f7692901;p=thirdparty%2Fbird.git Fixes bug that causes crash with strange BGP updates. --- diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 0b41244bf..c3a867315 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)