[openwrt/openwrt] unetmsg: fix stale network cleanup in unetd_network_update()
LEDE Commits
lede-commits at lists.infradead.org
Mon Feb 16 00:20:56 PST 2026
nbd pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/535403297e4d4574008c85b483ff17c252819c90
commit 535403297e4d4574008c85b483ff17c252819c90
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Feb 6 09:17:50 2026 +0000
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 at nbd.name>
(cherry picked from commit a2368e0f6906cd6ad374c0280a1c219f789ca258)
---
.../services/unetmsg/files/usr/share/ucode/unetmsg/unetmsgd-remote.uc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
More information about the lede-commits
mailing list