From f8770e816ac17df535c32b52e79a7ccffaea9bcc Mon Sep 17 00:00:00 2001
From: Maria Matejka <mq@ucw.cz>
Date: Thu, 20 Nov 2025 14:35:02 +0100
Subject: [PATCH] BMP: Fix crash when exporting a route with non-bgp attributes

Reported-By: Annika Hannig
---
 proto/bgp/packets.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index 0971107ce..157afdd90 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -2550,6 +2550,7 @@ bgp_create_update_bmp(struct bgp_channel *c, byte *buf, byte *end, struct bgp_bu
     .add_path = c->add_path_rx,
     .mpls = c->desc->mpls,
     .sham = 1,
+    .ignore_non_bgp_attrs = 1,
   };
 
   if (!update)
-- 
GitLab

