0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 08:38:42 +00:00

Fixes BGP crash when update with some attributes and empty NLRI is received.

Thanks to Charlie Allom for the bugreport.
This commit is contained in:
Ondrej Zajicek 2014-05-04 00:01:06 +02:00
parent c865cae3eb
commit 66370eac1f

View File

@ -1112,7 +1112,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))
a0 = NULL;
last_id = 0;