mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-06 19:43:47 +00:00
zebra: unlock node only after operation in zebra_free_rnh()
Move route_unlock_node() after rnh_list_del().
Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
(cherry picked from commit 5b6ff51b8a
)
This commit is contained in:
parent
4d229b0019
commit
e9c99dfd7a
@ -220,10 +220,9 @@ void zebra_free_rnh(struct rnh *rnh)
|
|||||||
if (rern) {
|
if (rern) {
|
||||||
rib_dest_t *dest;
|
rib_dest_t *dest;
|
||||||
|
|
||||||
route_unlock_node(rern);
|
|
||||||
|
|
||||||
dest = rib_dest_from_rnode(rern);
|
dest = rib_dest_from_rnode(rern);
|
||||||
rnh_list_del(&dest->nht, rnh);
|
rnh_list_del(&dest->nht, rnh);
|
||||||
|
route_unlock_node(rern);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free_state(rnh->vrf_id, rnh->state, rnh->node);
|
free_state(rnh->vrf_id, rnh->state, rnh->node);
|
||||||
|
Loading…
Reference in New Issue
Block a user