From 084131c8504f8acc8d6347165252964e43f03a8e Mon Sep 17 00:00:00 2001 From: Vidyullatha Kanchanapally Date: Thu, 17 Aug 2017 13:56:07 +0530 Subject: [PATCH] FILS: Allow eap_peer_get_erp_info() to be called without config Signed-off-by: Jouni Malinen --- src/eap_peer/eap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/eap_peer/eap.c b/src/eap_peer/eap.c index 7a987b6b3..004370706 100644 --- a/src/eap_peer/eap.c +++ b/src/eap_peer/eap.c @@ -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;