network: do not use assert() on a call with side effects
Fixes bf943a9d49.
This commit is contained in:
committed by
Lennart Poettering
parent
9ac37aa0c7
commit
0e6fe7f51f
@@ -2052,7 +2052,7 @@ static int ndisc_router_process_captive_portal(Link *link, sd_ndisc_router *rt,
|
||||
target = c;
|
||||
|
||||
assert(target);
|
||||
assert(set_remove(link->ndisc_captive_portals, target) == target);
|
||||
assert_se(set_remove(link->ndisc_captive_portals, target) == target);
|
||||
ndisc_captive_portal_free(target);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user