projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cc8be3
)
P2P: Avoid segfault on AP deinit after failed AP start
author
Jouni Malinen
<jouni.malinen@atheros.com>
Thu, 29 Jul 2010 23:41:14 +0000
(16:41 -0700)
committer
Jouni Malinen
<j@w1.fi>
Thu, 9 Sep 2010 14:17:21 +0000
(07:17 -0700)
wpa_supplicant/ap.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/ap.c
b/wpa_supplicant/ap.c
index
f638186
..
c38f188
100644
(file)
--- a/
wpa_supplicant/ap.c
+++ b/
wpa_supplicant/ap.c
@@
-395,7
+395,8
@@
void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s)
wpa_s->current_ssid = NULL;
#ifdef CONFIG_P2P
- wpa_s->ap_iface->bss[0]->p2p_group = NULL;
+ if (wpa_s->ap_iface->bss)
+ wpa_s->ap_iface->bss[0]->p2p_group = NULL;
wpas_p2p_group_deinit(wpa_s);
#endif /* CONFIG_P2P */
hostapd_interface_deinit(wpa_s->ap_iface);