mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2026-06-11 05:07:26 -04:00
unetmsg: fix stale network cleanup in unetd_network_update()
The condition checked !data.networks instead of !data.networks[name],
making it always false since data.networks was already validated earlier
in the function. Networks removed from unetd were never closed.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit a2368e0f69)
This commit is contained in:
@@ -524,7 +524,7 @@ function unetd_network_update()
|
||||
}
|
||||
|
||||
for (let name in networks)
|
||||
if (!data.networks)
|
||||
if (!data.networks[name])
|
||||
network_close(name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user