aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-08-08 16:30:58 (GMT)
committerJouni Malinen <j@w1.fi>2008-08-08 16:30:58 (GMT)
commit7b5776834b0190fd13b08592c8fcdc32177bbdc4 (patch)
treeed33b9b7f27a4c2bd4241e4ee3d4fc4b0a6008da /hostapd/hostapd.c
parent358921edb77a49acc4310176061cc6986fb3ce74 (diff)
downloadhostap-06-7b5776834b0190fd13b08592c8fcdc32177bbdc4.zip
hostap-06-7b5776834b0190fd13b08592c8fcdc32177bbdc4.tar.gz
hostap-06-7b5776834b0190fd13b08592c8fcdc32177bbdc4.tar.bz2
Fixed a NULL pointer dereference when driver initialization fails
Diffstat (limited to 'hostapd/hostapd.c')
-rw-r--r--hostapd/hostapd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index f0437fd..e9d9647 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -173,7 +173,7 @@ static void hostapd_deauth_all_stas(struct hostapd_data *hapd)
* nothing works correctly, so let's skip sending this for the hostap
* driver. */
- if (os_strcmp(hapd->driver->name, "hostap") != 0) {
+ if (hapd->driver && os_strcmp(hapd->driver->name, "hostap") != 0) {
os_memset(addr, 0xff, ETH_ALEN);
hostapd_sta_deauth(hapd, addr,
WLAN_REASON_PREV_AUTH_NOT_VALID);