aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/hostapd.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-06-12 21:36:18 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-12 21:37:23 (GMT)
commitcc27c8e68001aaa28599bf9e91025540d492efb8 (patch)
tree00ecef6a3ef21b14844672ced62c1223c4542da0 /src/ap/hostapd.h
parent976dfb32377c243c7d245ec2933f37f6c18ce23b (diff)
downloadhostap-cc27c8e68001aaa28599bf9e91025540d492efb8.zip
hostap-cc27c8e68001aaa28599bf9e91025540d492efb8.tar.gz
hostap-cc27c8e68001aaa28599bf9e91025540d492efb8.tar.bz2
hostapd: Fix early init failure path
eloop deinit calls could trigger segmentation fault if the early error path is hit before eloop_init() gets called. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/hostapd.h')
-rw-r--r--src/ap/hostapd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ap/hostapd.h b/src/ap/hostapd.h
index 4dba8cb..195679e 100644
--- a/src/ap/hostapd.h
+++ b/src/ap/hostapd.h
@@ -53,6 +53,7 @@ struct hapd_interfaces {
#ifndef CONFIG_NO_VLAN
struct dynamic_iface *vlan_priv;
#endif /* CONFIG_NO_VLAN */
+ int eloop_initialized;
};
enum hostapd_chan_status {