aboutsummaryrefslogtreecommitdiff
path: root/net/bird/files/patch-bgp-packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bird/files/patch-bgp-packet.c')
-rw-r--r--net/bird/files/patch-bgp-packet.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/bird/files/patch-bgp-packet.c b/net/bird/files/patch-bgp-packet.c
new file mode 100644
index 000000000000..a5035181f045
--- /dev/null
+++ b/net/bird/files/patch-bgp-packet.c
@@ -0,0 +1,11 @@
+--- proto/bgp/packets.c
++++ 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)