]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: fix error aggregation in wwan_check_and_set_configuration()
authornoxiouz <atiurin@proton.me>
Mon, 2 Mar 2026 22:42:16 +0000 (22:42 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 2 Mar 2026 23:59:48 +0000 (08:59 +0900)
commitfbf533859f312de19e25979ebf243d6929c00d1d
treedc708c2f9bcf153d34cec3213927be124b5099b2
parent66a43b02e6e6d0e5c6ef0834ea757eb7e331bbd9
network: fix error aggregation in wwan_check_and_set_configuration()

When removing marked routes, the condition `if (ret)` incorrectly
overwrites any previously accumulated error in `ret` with the latest
return value `r`, even if `r >= 0` (success). This means an earlier
real error can be silently cleared by a subsequent successful
route_remove() call.

The parallel address_remove() block just above uses the correct
`if (r < 0)` pattern. Apply the same fix to the route_remove() block.
src/network/networkd-wwan.c