luci-base: fix ubus getFeatures() crash
authorJo-Philipp Wich <redacted>
Wed, 1 Apr 2026 11:11:14 +0000 (13:11 +0200)
committerJo-Philipp Wich <redacted>
Wed, 1 Apr 2026 11:11:14 +0000 (13:11 +0200)
commit95a84c0c4369cfaad6b67961b2c5e6be0870f528
tree4f3e42da28578547062cb0906a209fddd3d62236
parentba0051729a283c69daae0671418ae0e2b563081c
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 <redacted>
modules/luci-base/root/usr/share/rpcd/ucode/luci
git clone https://git.99rst.org/PROJECT