]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BMP: Fix crash when exporting a route with non-bgp attributes
authorMaria Matejka <mq@ucw.cz>
Thu, 20 Nov 2025 13:35:02 +0000 (14:35 +0100)
committerMaria Matejka <mq@ucw.cz>
Thu, 20 Nov 2025 13:36:03 +0000 (14:36 +0100)
Reported-By: Annika Hannig
proto/bgp/packets.c

index 4581e1f910f62cd5f5ff470a7cee79a0ec141445..fcaff7459077fda71c3831809026b68ed5d72438 100644 (file)
@@ -2554,6 +2554,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)