diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2024-10-16 09:25:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-16 09:25:00 -0500 |
| commit | 77f16ac69abcf74aed6c782fb032e3d021888de6 (patch) | |
| tree | 44ff1103f6506f3313392e537df02580804a9ae1 | |
| parent | df1c24894ca340078ff016f2db0518aad79ed090 (diff) | |
| parent | 6558d68c876970b3b7bd7aed9423de0541096946 (diff) | |
Merge pull request #17132 from FRRouting/mergify/bp/stable/9.1/pr-17116
zebra: unlock node only after operation in zebra_free_rnh() (backport #17116)
| -rw-r--r-- | zebra/zebra_rnh.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c index aeb7ae35b6..0bfa2b9776 100644 --- a/zebra/zebra_rnh.c +++ b/zebra/zebra_rnh.c @@ -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); |
