]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Allow eap_peer_get_erp_info() to be called without config
authorVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Thu, 17 Aug 2017 08:26:07 +0000 (13:56 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 17 Oct 2017 22:19:40 +0000 (01:19 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/eap_peer/eap.c

index 7a987b6b3df9445e8256b5d77bc393d44dcecca5..004370706f993f8b2a6ea8659f532be401cf15cd 100644 (file)
@@ -610,7 +610,10 @@ int eap_peer_get_erp_info(struct eap_sm *sm, struct eap_peer_config *config,
        char *home_realm;
        char *pos;
 
-       home_realm = eap_get_realm(sm, config);
+       if (config)
+               home_realm = eap_get_realm(sm, config);
+       else
+               home_realm = eap_home_realm(sm);
        if (!home_realm || os_strlen(home_realm) == 0) {
                os_free(home_realm);
                return -1;