mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
Interworking: Remove unnecessary NULL check
nai_realm_find_eap() is called only in cases where the cred pointer is not NULL. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
400de9b1fe
commit
5a5aab7f40
@ -649,8 +649,7 @@ static struct nai_realm_eap * nai_realm_find_eap(struct wpa_cred *cred,
|
||||
{
|
||||
u8 e;
|
||||
|
||||
if (cred == NULL ||
|
||||
cred->username == NULL ||
|
||||
if (cred->username == NULL ||
|
||||
cred->username[0] == '\0' ||
|
||||
((cred->password == NULL ||
|
||||
cred->password[0] == '\0') &&
|
||||
|
Loading…
Reference in New Issue
Block a user