Skip to content

Commit

Permalink
Merge pull request FRRouting#17130 from FRRouting/mergify/bp/stable/1…
Browse files Browse the repository at this point in the history
…0.1/pr-17116

zebra: unlock node only after operation in zebra_free_rnh() (backport FRRouting#17116)
  • Loading branch information
ton31337 authored Oct 18, 2024
2 parents 16c17f5 + e9c99df commit ddce313
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 ddce313

Please sign in to comment.