mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-09 08:22:42 +01:00
eap: Make sure identity is not NULL
This commit is contained in:
parent
716e3f0cda
commit
44ebf10bb9
@ -562,7 +562,7 @@ bool eap_load_settings(struct eap_state *eap, struct l_settings *settings,
|
|||||||
* ...
|
* ...
|
||||||
* RADIUS is unable to support NAI lengths beyond 253 octets
|
* RADIUS is unable to support NAI lengths beyond 253 octets
|
||||||
*/
|
*/
|
||||||
if (strlen(eap->identity) > 253) {
|
if (eap->identity && strlen(eap->identity) > 253) {
|
||||||
l_error("Identity is too long");
|
l_error("Identity is too long");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user