hostapd: fix segfault when deinit mesh ifaces
authorJesus Fernandez Manzano <jesus.manzano@galgus.net>
Tue, 21 Sep 2021 10:49:30 +0000 (12:49 +0200)
committerDavid Bauer <mail@david-bauer.net>
Fri, 24 Sep 2021 10:33:33 +0000 (12:33 +0200)
commit3a051a234a63e1c61510e170a0bf0c89fdf1518c
treeee3642e51f4bb1ea9fbfb16f9de32a2fd3140499
parent5c904bcb37374d1d5f26dcb7878f869c15ad2082
hostapd: fix segfault when deinit mesh ifaces

In hostapd_ubus_add_bss(), ubus objects are not registered for mesh
interfaces. This provokes a segfault when accessing the ubus object in
mesh deinit.

This commit adds the same condition to hostapd_ubus_free_bss() for
discarding those mesh interfaces.

Signed-off-by: Jesus Fernandez Manzano <jesus.manzano@galgus.net>
(cherry picked from commit 5269c47e8db549695ceaf6a19afdd0cb90074622)
package/network/services/hostapd/src/src/ap/ubus.c