From: Arran Cudbard-Bell Date: Fri, 15 Dec 2017 20:29:42 +0000 (+0000) Subject: Fix pseudonym case X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=287ddc132364aba4f967bb8a01a9ffcd66a8ce4e;p=thirdparty%2Ffreeradius-server.git Fix pseudonym case --- diff --git a/src/modules/rlm_eap/types/rlm_eap_aka/rlm_eap_aka.c b/src/modules/rlm_eap/types/rlm_eap_aka/rlm_eap_aka.c index 70e16e691bc..767e4a4eebb 100644 --- a/src/modules/rlm_eap/types/rlm_eap_aka/rlm_eap_aka.c +++ b/src/modules/rlm_eap/types/rlm_eap_aka/rlm_eap_aka.c @@ -1137,8 +1137,16 @@ static rlm_rcode_t mod_session_init(void *instance, eap_session_t *eap_session) * Request the unmolested identity */ case SIM_ID_TYPE_UNKNOWN: + RWDEBUG("Identity format unknown, sending Identity request"); goto request_id; + /* + * These types need to be transformed into something + * usable before we can do anything. + */ + case SIM_ID_TYPE_PSEUDONYM: + case SIM_ID_TYPE_FASTAUTH: + /* * Permanent ID means we can just send the challenge */ @@ -1148,14 +1156,6 @@ static rlm_rcode_t mod_session_init(void *instance, eap_session_t *eap_session) eap_aka_session->keys.identity_len)); eap_aka_state_enter(eap_session, EAP_AKA_SERVER_CHALLENGE); return RLM_MODULE_OK; - - /* - * These types need to be transformed into something - * usable before we can do anything. - */ - case SIM_ID_TYPE_PSEUDONYM: - case SIM_ID_TYPE_FASTAUTH: - return RLM_MODULE_OK; } return RLM_MODULE_OK;