From: Felix Fietkau Date: Fri, 6 Feb 2026 09:17:50 +0000 (+0000) Subject: unetmsg: fix stale network cleanup in unetd_network_update() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2368e0f6906cd6ad374c0280a1c219f789ca258;p=thirdparty%2Fopenwrt.git 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 --- 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 7122a9825f9..92f81262efb 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); }