Merge pull request #17116 from enkechen-panw/zfix-2

zebra: unlock node only after operation in zebra_free_rnh()
This commit is contained in:
Donatas Abraitis 2024-10-16 08:12:28 +03:00 committed by GitHub
commit c32bdc2469
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,10 +220,9 @@ void zebra_free_rnh(struct rnh *rnh)
if (rern) {
rib_dest_t *dest;
route_unlock_node(rern);
dest = rib_dest_from_rnode(rern);
rnh_list_del(&dest->nht, rnh);
route_unlock_node(rern);
}
}
free_state(rnh->vrf_id, rnh->state, rnh->node);