Commit 4225b83a authored by Felix Fietkau's avatar Felix Fietkau Committed by Daniel Golle

hostapd: fix crash regression triggered by mesh mode

Fixes: 60fb4c92 ("hostapd: add ubus reload")
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
[daniel@makrotopia.org: polish commit message]
parent 231dc268
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment