Make PMKID check easier for static analyzers
Checking sm->pmksa is sufficient here, but that seems to be too difficult for static analyzers to follow, so avoid false reports by explicitly checking pmkid as well. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
06df2aa60a
commit
4a9d0ebe4a
1 changed files with 1 additions and 1 deletions
|
@ -675,7 +675,7 @@ int wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (sm->pmksa) {
|
if (sm->pmksa && pmkid) {
|
||||||
wpa_auth_vlogger(wpa_auth, sm->addr, LOGGER_DEBUG,
|
wpa_auth_vlogger(wpa_auth, sm->addr, LOGGER_DEBUG,
|
||||||
"PMKID found from PMKSA cache "
|
"PMKID found from PMKSA cache "
|
||||||
"eap_type=%d vlan_id=%d",
|
"eap_type=%d vlan_id=%d",
|
||||||
|
|
Loading…
Reference in a new issue