FILS: Allow eap_peer_get_erp_info() to be called without config
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
b0a21e228d
commit
084131c850
1 changed files with 4 additions and 1 deletions
|
@ -610,7 +610,10 @@ int eap_peer_get_erp_info(struct eap_sm *sm, struct eap_peer_config *config,
|
||||||
char *home_realm;
|
char *home_realm;
|
||||||
char *pos;
|
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) {
|
if (!home_realm || os_strlen(home_realm) == 0) {
|
||||||
os_free(home_realm);
|
os_free(home_realm);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue