]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix cleanup of meta queues on vrf disable
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 23 Jan 2022 17:22:42 +0000 (20:22 +0300)
committermergify-bot <noreply@mergify.com>
Wed, 2 Feb 2022 13:35:51 +0000 (13:35 +0000)
commit86c55361f9d47de9c4db4d03c44beb5fcb375bc2
tree1b5ae68e21f7fecea8a583740a9aa877beec5a31
parent80fe9b221d1ed800c4a68d951957ee88505aef75
zebra: fix cleanup of meta queues on vrf disable

Current code treats all metaqueues as lists of route_node structures.
However, some queues contain other structures that need to be cleaned up
differently. Casting the elements of those queues to struct route_node
and dereferencing them leads to a crash. The crash may be seen when
executing bgp_multi_vrf_topo2.

Fix the code by using the proper list element types.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 0ef6eacc95c82014c04f13be3b641ff3983040ca)
zebra/rib.h
zebra/zebra_rib.c
zebra/zebra_vrf.c