From: Vidyullatha Kanchanapally Date: Wed, 17 May 2017 12:37:11 +0000 (+0530) Subject: ERP: Do not generate ERP keys when domain name is not specified X-Git-Tag: hostap_2_7~1304 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4aa329298da36c3b477571e30b6ace07b2f38302;p=thirdparty%2Fhostap.git 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 --- 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; }