mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -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;
|
u8 e;
|
||||||
|
|
||||||
if (cred == NULL ||
|
if (cred->username == NULL ||
|
||||||
cred->username == NULL ||
|
|
||||||
cred->username[0] == '\0' ||
|
cred->username[0] == '\0' ||
|
||||||
((cred->password == NULL ||
|
((cred->password == NULL ||
|
||||||
cred->password[0] == '\0') &&
|
cred->password[0] == '\0') &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user