diff options
-rw-r--r-- | proto/bgp/packets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 0b41244..c3a8673 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -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) |