Commit 61c96d72 authored by Ondřej Zajíček's avatar Ondřej Zajíček

Fixes bug that causes crash with strange BGP updates.

parent 5e9bdac2
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment