mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
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:
@@ -291,7 +291,6 @@ const methods = {
|
||||
fd.close();
|
||||
}
|
||||
|
||||
result.odhcpd = false;
|
||||
fd = popen('odhcpd -h 2>/dev/null');
|
||||
|
||||
if (fd) {
|
||||
|
||||
Reference in New Issue
Block a user