Remove redundant NULL check in ieee802_1x_encapsulate_radius()
The eap argument to this function is never NULL and the earlier ieee802_1x_learn_identity() call is dereferencing it anyway, so there is no point in checking whether it is NULL later in the function. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
d5479878b8
commit
c99df20192
1 changed files with 1 additions and 1 deletions
|
@ -600,7 +600,7 @@ static void ieee802_1x_encapsulate_radius(struct hostapd_data *hapd,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (eap && !radius_msg_add_eap(msg, eap, len)) {
|
if (!radius_msg_add_eap(msg, eap, len)) {
|
||||||
wpa_printf(MSG_INFO, "Could not add EAP-Message");
|
wpa_printf(MSG_INFO, "Could not add EAP-Message");
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue