]> git.ipfire.org Git - thirdparty/bird.git/commit
BGP: Fix crash on too long export
authorMaria Matejka <mq@ucw.cz>
Wed, 7 May 2025 13:02:24 +0000 (15:02 +0200)
committerMaria Matejka <mq@ucw.cz>
Wed, 7 May 2025 16:46:14 +0000 (18:46 +0200)
commiteb5385c9967d236224fe4cf6bc4a6963a00911be
tree68e82fcf4bc4aad4b88a53588cc135e9872ebc08
parentd1b1d4e2b3261f0aeca0b64c7b73ad972bb36043
BGP: Fix crash on too long export

When BGP route is short enough to be accepted but too long after local
changes, it is converted to withdraw. In these cases though, there was
a dangling pointer left from the prefix structure to the attribute
bucket.

That pointer is now pointing at the right place after the bucket gets
converted to withdraw.

Thanks to ix.br for catching and reporting this issue.
proto/bgp/attrs.c