eap: Make sure identity is not NULL

This commit is contained in:
Denis Kenzior 2019-04-08 16:25:31 -05:00
parent 716e3f0cda
commit 44ebf10bb9
1 changed files with 1 additions and 1 deletions

View File

@ -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
*/
if (strlen(eap->identity) > 253) {
if (eap->identity && strlen(eap->identity) > 253) {
l_error("Identity is too long");
goto err;
}