summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2026-02-06 09:17:50 +0000
committerFelix Fietkau2026-02-16 08:07:46 +0000
commit535403297e4d4574008c85b483ff17c252819c90 (patch)
tree7a180f848348384badbd1617679adb8116c1f133
parentdfbd3716589b4e1f9bd508ff96477f8c1bc21e99 (diff)
downloadopenwrt-535403297e4d4574008c85b483ff17c252819c90.tar.gz
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 a2368e0f6906cd6ad374c0280a1c219f789ca258)
-rw-r--r--package/network/services/unetmsg/files/usr/share/ucode/unetmsg/unetmsgd-remote.uc2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/unetmsg/files/usr/share/ucode/unetmsg/unetmsgd-remote.uc b/package/network/services/unetmsg/files/usr/share/ucode/unetmsg/unetmsgd-remote.uc
index 7122a9825f..92f81262ef 100644
--- a/package/network/services/unetmsg/files/usr/share/ucode/unetmsg/unetmsgd-remote.uc
+++ b/package/network/services/unetmsg/files/usr/share/ucode/unetmsg/unetmsgd-remote.uc
@@ -524,7 +524,7 @@ function unetd_network_update()
}
for (let name in networks)
- if (!data.networks)
+ if (!data.networks[name])
network_close(name);
}