diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-10-16 08:12:28 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-16 08:12:28 +0300 |
| commit | c32bdc24697aa0a988fa739228022083b96acecc (patch) | |
| tree | 8c839f7dee91eccec52dbde731d88b0164fcdcf2 | |
| parent | e17bc281ef7d8b2949d8088b7551996183d363ea (diff) | |
| parent | 5b6ff51b8ae7f8c7348cea4de9543956f32641a7 (diff) | |
Merge pull request #17116 from enkechen-panw/zfix-2
zebra: unlock node only after operation in zebra_free_rnh()
| -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 89317be74d..7c25fb3ef3 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); |
