]> git.proxmox.com Git - mirror_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)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 1 Feb 2022 15:20:30 +0000 (18:20 +0300)
commit0ef6eacc95c82014c04f13be3b641ff3983040ca
treeffbd3d6951c5baa1a955beba32891a610b5ceb1a
parent7a90d91586290d872c05960427df2d3f031cc5e5
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>
zebra/rib.h
zebra/zebra_rib.c
zebra/zebra_vrf.c