From: Felix Fietkau Date: Wed, 4 Dec 2019 23:01:28 +0000 (+0100) Subject: hostapd: fix crash regression triggered by mesh mode X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4225b83a76b86b7722609347f6e8a7f9433e1ea0;p=openwrt%2Fstaging%2Fthess.git hostapd: fix crash regression triggered by mesh mode Fixes: 60fb4c92b6 ("hostapd: add ubus reload") Signed-off-by: Felix Fietkau Signed-off-by: Daniel Golle [daniel@makrotopia.org: polish commit message] --- diff --git a/package/network/services/hostapd/patches/700-wifi-reload.patch b/package/network/services/hostapd/patches/700-wifi-reload.patch index c5ba631a0f..b21ae85451 100644 --- a/package/network/services/hostapd/patches/700-wifi-reload.patch +++ b/package/network/services/hostapd/patches/700-wifi-reload.patch @@ -87,7 +87,7 @@ hapd->iconf = conf; hapd->conf = bss; hapd->iface = hapd_iface; -+ if (bss->config_id) ++ if (bss && bss->config_id) + hapd->config_id = strdup(bss->config_id); + else + hapd->config_id = NULL;