hostapd: fix crash regression triggered by mesh mode
authorFelix Fietkau <nbd@nbd.name>
Wed, 4 Dec 2019 23:01:28 +0000 (00:01 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 8 Dec 2019 18:51:53 +0000 (19:51 +0100)
Fixes: 60fb4c92b6 ("hostapd: add ubus reload")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
[daniel@makrotopia.org: polish commit message]

package/network/services/hostapd/patches/700-wifi-reload.patch

index c5ba631a0fc02f70714cb081b42fcf6cb9694450..b21ae8545131e6c695b4af7a9783cc03cd7369bb 100644 (file)
@@ -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;