network: do not use assert() on a call with side effects

Fixes bf943a9d49.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-07-14 19:05:48 +02:00
committed by Lennart Poettering
parent 9ac37aa0c7
commit 0e6fe7f51f
+1 -1
View File
@@ -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);
}