mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-21 11:33:04 -05:00
scan: Clean up code a bit - ssid cannot be NULL here
wpa_s->current_ssid is set to a non-NULL ssid pointer value here, so there is no need for the extra if statement. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
a1703947b1
commit
e1ae2876d5
@ -36,8 +36,7 @@ static void wpa_supplicant_gen_assoc_event(struct wpa_supplicant *wpa_s)
|
|||||||
|
|
||||||
if (wpa_s->current_ssid == NULL) {
|
if (wpa_s->current_ssid == NULL) {
|
||||||
wpa_s->current_ssid = ssid;
|
wpa_s->current_ssid = ssid;
|
||||||
if (wpa_s->current_ssid != NULL)
|
wpas_notify_network_changed(wpa_s);
|
||||||
wpas_notify_network_changed(wpa_s);
|
|
||||||
}
|
}
|
||||||
wpa_supplicant_initiate_eapol(wpa_s);
|
wpa_supplicant_initiate_eapol(wpa_s);
|
||||||
wpa_dbg(wpa_s, MSG_DEBUG, "Already associated with a configured "
|
wpa_dbg(wpa_s, MSG_DEBUG, "Already associated with a configured "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user