Skip to content

Commit

Permalink
Merge pull request FRRouting#17133 from FRRouting/mergify/bp/stable/9…
Browse files Browse the repository at this point in the history
….0/pr-17116

zebra: unlock node only after operation in zebra_free_rnh() (backport FRRouting#17116)
  • Loading branch information
ton31337 authored Oct 21, 2024
2 parents 6cae4dc + dfb932a commit 0a5e255
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 0a5e255

Please sign in to comment.