mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
Fix crash on BSS deinit getting called before BSS init
This commit is contained in:
parent
34359a3fb1
commit
e5fc8c8ce5
@ -260,6 +260,8 @@ void wpa_bss_deinit(struct wpa_supplicant *wpa_s)
|
||||
{
|
||||
struct wpa_bss *bss, *n;
|
||||
eloop_cancel_timeout(wpa_bss_timeout, wpa_s, NULL);
|
||||
if (wpa_s->bss.next == NULL)
|
||||
return; /* BSS table not yet initialized */
|
||||
dl_list_for_each_safe(bss, n, &wpa_s->bss, struct wpa_bss, list)
|
||||
wpa_bss_remove(wpa_s, bss);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user