From 4aa329298da36c3b477571e30b6ace07b2f38302 Mon Sep 17 00:00:00 2001 From: Vidyullatha Kanchanapally Date: Wed, 17 May 2017 18:07:11 +0530 Subject: [PATCH] ERP: Do not generate ERP keys when domain name is not specified This commit adds changes to not generate ERP information if the domain name is not specified in the EAP identity. keyName-NAI needs the realm part and as such, it is reasonable to require the main EAP configuration to provide that realm. Signed-off-by: Jouni Malinen --- src/eap_peer/eap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eap_peer/eap.c b/src/eap_peer/eap.c index 5ca24603e..28bb0442a 100644 --- a/src/eap_peer/eap.c +++ b/src/eap_peer/eap.c @@ -412,7 +412,7 @@ static char * eap_get_realm(struct eap_sm *sm, struct eap_peer_config *config) } } - return os_strdup(""); + return NULL; }