Skip to content

Commit

Permalink
Merge pull request #17129 from FRRouting/mergify/bp/dev/10.2/pr-17116
Browse files Browse the repository at this point in the history
zebra: unlock node only after operation in zebra_free_rnh() (backport #17116)
  • Loading branch information
donaldsharp authored Oct 16, 2024
2 parents eb83a1f + 5aae058 commit a8c5175
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 a8c5175

Please sign in to comment.