aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-05-03 10:36:15 (GMT)
committerJouni Malinen <j@w1.fi>2018-05-31 10:06:07 (GMT)
commit8fd29a0439a3c04c80b12ad349ee9cf2c4c44437 (patch)
tree98a43ff5287167b5b4957368c0b21b5f3b5b2932 /wpa_supplicant
parent8518326b22ff42f03e1e16e7f2794d33ab97f03c (diff)
downloadhostap-8fd29a0439a3c04c80b12ad349ee9cf2c4c44437.zip
hostap-8fd29a0439a3c04c80b12ad349ee9cf2c4c44437.tar.gz
hostap-8fd29a0439a3c04c80b12ad349ee9cf2c4c44437.tar.bz2
mesh: Fix crash with CONFIG_TAXONOMY enabled
wpa_s->ifmsh needs to be allocated using hostapd_alloc_iface() instead of a direct call to os_zalloc(), otherwise the linked list for station taxonomy items remains uninitialized, leading to a crash on the first attempt to traverse that list Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index 8a3bada..38b9fb3 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -169,7 +169,7 @@ static int wpa_supplicant_mesh_init(struct wpa_supplicant *wpa_s,
return 0;
}
- wpa_s->ifmsh = ifmsh = os_zalloc(sizeof(*wpa_s->ifmsh));
+ wpa_s->ifmsh = ifmsh = hostapd_alloc_iface();
if (!ifmsh)
return -ENOMEM;