mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Call wpas_notify_network_selected only if a specific network was selected
ssid could be NULL here at least based on the function documentation, so better check whether that is the case prior to calling the notification function.
This commit is contained in:
parent
5be45e2e6e
commit
a1641d2671
@ -1481,6 +1481,7 @@ void wpa_supplicant_select_network(struct wpa_supplicant *wpa_s,
|
|||||||
wpa_s->reassociate = 1;
|
wpa_s->reassociate = 1;
|
||||||
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
||||||
|
|
||||||
|
if (ssid)
|
||||||
wpas_notify_network_selected(wpa_s, ssid);
|
wpas_notify_network_selected(wpa_s, ssid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user