]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
ERP: Do not generate ERP keys when domain name is not specified
authorVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Wed, 17 May 2017 12:37:11 +0000 (18:07 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 22 May 2017 10:51:23 +0000 (13:51 +0300)
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 <jouni@qca.qualcomm.com>
src/eap_peer/eap.c

index 5ca24603ee052ca346649d0cd7511176f517287c..28bb0442a53c635eeffa149c26dfab6da58440f4 100644 (file)
@@ -412,7 +412,7 @@ static char * eap_get_realm(struct eap_sm *sm, struct eap_peer_config *config)
                }
        }
 
-       return os_strdup("");
+       return NULL;
 }