mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-20 02:53:03 -05:00
Remove unnecessary NULL check to make function more consistent
Static analyzers may warn about dereference before NULL check in wpas_network_disabled() due to the new code added to check wpa_s->p2p_mgmt. wpa_s cannot be NULL here, so remove the unneeded check for it later in the function. (CID 106124) Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
bfc048b48f
commit
9feadba141
@ -4986,7 +4986,7 @@ int wpas_network_disabled(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
|
||||
if (ssid->disabled)
|
||||
return 1;
|
||||
|
||||
if (wpa_s && wpa_s->drv_capa_known)
|
||||
if (wpa_s->drv_capa_known)
|
||||
drv_enc = wpa_s->drv_enc;
|
||||
else
|
||||
drv_enc = (unsigned int) -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user