mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Fixes bug that causes crash with strange BGP updates.
This commit is contained in:
parent
5e9bdac28e
commit
61c96d7244
@ -862,7 +862,7 @@ bgp_do_rx_update(struct bgp_conn *conn,
|
|||||||
if (conn->state != BS_ESTABLISHED) /* fatal error during decoding */
|
if (conn->state != BS_ESTABLISHED) /* fatal error during decoding */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (a0 && bgp_set_next_hop(p, a0))
|
if (a0 && nlri_len && bgp_set_next_hop(p, a0))
|
||||||
a = rta_lookup(a0);
|
a = rta_lookup(a0);
|
||||||
|
|
||||||
while (nlri_len)
|
while (nlri_len)
|
||||||
|
Loading…
Reference in New Issue
Block a user