Compare commits
8 Commits
37de158216
...
e94c38e783
Author | SHA1 | Date |
---|---|---|
Yu Watanabe | e94c38e783 | |
Yu Watanabe | dda1e98c04 | |
Yu Watanabe | 3d417da827 | |
Yu Watanabe | 5209f43ad2 | |
Yu Watanabe | a16844ff60 | |
Yu Watanabe | 5344ee6c94 | |
Yu Watanabe | 3985e93dab | |
Yu Watanabe | c6f6f506fc |
|
@ -78,7 +78,9 @@ static NextHop* nexthop_detach_impl(NextHop *nexthop) {
|
|||
|
||||
nexthop_detach_from_group_members(nexthop);
|
||||
|
||||
assert_se(hashmap_remove(nexthop->manager->nexthops_by_id, UINT32_TO_PTR(nexthop->id)) == nexthop);
|
||||
NextHop *n;
|
||||
n = hashmap_remove(nexthop->manager->nexthops_by_id, UINT32_TO_PTR(nexthop->id));
|
||||
assert(!n || n == nexthop);
|
||||
nexthop->manager = NULL;
|
||||
return nexthop;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue