aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorShan Palanisamy <shanp@qca.qualcomm.com>2012-02-16 19:42:29 +0200
committerJouni Malinen <j@w1.fi>2012-02-16 19:42:29 +0200
commitc0971c561ffcb3a4d83183b24bc7a578ac8a3475 (patch)
tree44a5bffe34e9d8c91ae88b976a4e233fb79f6b2e /hostapd
parent31b79e11973e87ddd4abc2782ad1374fee80f17b (diff)
downloadexternal_wpa_supplicant_8_ti-c0971c561ffcb3a4d83183b24bc7a578ac8a3475.zip
external_wpa_supplicant_8_ti-c0971c561ffcb3a4d83183b24bc7a578ac8a3475.tar.gz
external_wpa_supplicant_8_ti-c0971c561ffcb3a4d83183b24bc7a578ac8a3475.tar.bz2
Do not call hapd_deinit if driver was not initialized
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index 3918737..b0903cf 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -315,7 +315,7 @@ static void hostapd_interface_deinit_free(struct hostapd_iface *iface)
driver = iface->bss[0]->driver;
drv_priv = iface->bss[0]->drv_priv;
hostapd_interface_deinit(iface);
- if (driver && driver->hapd_deinit)
+ if (driver && driver->hapd_deinit && drv_priv)
driver->hapd_deinit(drv_priv);
hostapd_interface_free(iface);
}