]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix cleanup of meta queues on vrf disable 10479/head
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 23 Jan 2022 17:22:42 +0000 (20:22 +0300)
committerMark Stapp <mstapp@nvidia.com>
Wed, 2 Feb 2022 16:32:10 +0000 (11:32 -0500)
commit4f1f01af601525785cd87b7ec60025fcfe2350bf
tree9f07d43b54dbe7b17b41324ead161c5b1a5a2386
parent1f4300d521bba41714e90ff1c63678a69849013b
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