Compare commits
8 Commits
e94c38e783
...
37de158216
Author | SHA1 | Date |
---|---|---|
Yu Watanabe | 37de158216 | |
Yu Watanabe | 704d837741 | |
Yu Watanabe | d70f532b55 | |
Yu Watanabe | d64ce1efab | |
Yu Watanabe | f57bac0843 | |
Yu Watanabe | 33a60cd70f | |
Yu Watanabe | 1ed373c363 | |
Yu Watanabe | e656a914ea |
|
@ -78,9 +78,7 @@ static NextHop* nexthop_detach_impl(NextHop *nexthop) {
|
|||
|
||||
nexthop_detach_from_group_members(nexthop);
|
||||
|
||||
NextHop *n;
|
||||
n = hashmap_remove(nexthop->manager->nexthops_by_id, UINT32_TO_PTR(nexthop->id));
|
||||
assert(!n || n == nexthop);
|
||||
assert_se(hashmap_remove(nexthop->manager->nexthops_by_id, UINT32_TO_PTR(nexthop->id)) == nexthop);
|
||||
nexthop->manager = NULL;
|
||||
return nexthop;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue