mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 00:34:03 -05:00
P2P: Avoid segfault on AP deinit after failed AP start
This commit is contained in:
parent
0cc8be3e45
commit
0e14267a31
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user