luci-base: fix ubus getFeatures() crash

OpenWrt versions that provide odhcpd versions reporting a compile time
features line in their help output trigger a crash in the getFeatures()
procedure (attempt to set property on boolean value) - fix this issue
by not predeclaring the odhcpd flag as `false`.

Fixes: #8489
Fixes: 0529dca7a2 ("luci-base: fix feature detection patterns")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich
2026-04-01 13:11:14 +02:00
parent ba0051729a
commit 95a84c0c43

View File

@@ -291,7 +291,6 @@ const methods = {
fd.close();
}
result.odhcpd = false;
fd = popen('odhcpd -h 2>/dev/null');
if (fd) {