From: Felix Fietkau Date: Tue, 8 Aug 2023 18:11:42 +0000 (+0200) Subject: hostapd: add extra sanity checks for config reload X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9b56c27a8a08a5c40d38064b9046f42177c94768;p=openwrt%2Fstaging%2Fblogic.git hostapd: add extra sanity checks for config reload Avoid getting stuck because of bad configurations Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc index cc026cc853d2..b52732adcb7f 100644 --- a/package/network/services/hostapd/files/hostapd.uc +++ b/package/network/services/hostapd/files/hostapd.uc @@ -117,6 +117,9 @@ function iface_reload_config(phy, config, old_config) if (is_equal(old_config.bss, config.bss)) return true; + if (!old_config.bss || !old_config.bss[0]) + return false; + if (config.bss[0].ifname != old_config.bss[0].ifname) return false;