Properly roll back in the add-path send case in up_dump_prefix()
authorclaudio <claudio@openbsd.org>
Mon, 11 Jul 2022 16:58:58 +0000 (16:58 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 11 Jul 2022 16:58:58 +0000 (16:58 +0000)
commit513afc985d020741736cc4ca5c0d91272be801c2
treefbfea98340e0af1c30e43f149226f4822686c9b8
parent912fcbe324361501838a04ea7bcbff94231ec8f5
Properly roll back in the add-path send case in up_dump_prefix()

When up_dump_prefix() runs out of space while filling out prefixes
a possible path_id needs to be removed from the buf or else a corrupted
UPDATE is sent out.
OK tb@
usr.sbin/bgpd/rde_update.c