]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes bug that causes crash with strange BGP updates.
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 31 May 2011 15:27:46 +0000 (17:27 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 31 May 2011 15:27:46 +0000 (17:27 +0200)
proto/bgp/packets.c

index 0b41244bfb2c05801975a1e2ac14ab98659c5ff2..c3a867315316e230a97026ebee389ebcb8e0e0a7 100644 (file)
@@ -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)