Fixes BGP crash when update with some attributes and empty NLRI is received.
This commit is contained in:
parent
c865cae3eb
commit
7d9ab86b7a
1 changed files with 1 additions and 1 deletions
|
@ -1112,7 +1112,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))
|
||||||
a0 = NULL;
|
a0 = NULL;
|
||||||
|
|
||||||
last_id = 0;
|
last_id = 0;
|
||||||
|
|
Loading…
Reference in a new issue