commit 44ebf10bb9471473323ef6d7cfbf8c9e5ae46dc8
parent 716e3f0cdaa45cc57e8104cef0080e4a3c46483f
Author: Denis Kenzior <denkenz@gmail.com>
Date: Mon, 8 Apr 2019 16:25:31 -0500
eap: Make sure identity is not NULL
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/eap.c b/src/eap.c
@@ -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;
}