Skip to content

Commit

Permalink
Merge pull request #17116 from enkechen-panw/zfix-2
Browse files Browse the repository at this point in the history
zebra: unlock node only after operation in zebra_free_rnh()
  • Loading branch information
ton31337 authored Oct 16, 2024
2 parents e17bc28 + 5b6ff51 commit c32bdc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zebra/zebra_rnh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c32bdc2

Please sign in to comment.