]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix pseudonym case
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 15 Dec 2017 20:29:42 +0000 (20:29 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 15 Dec 2017 21:05:54 +0000 (21:05 +0000)
src/modules/rlm_eap/types/rlm_eap_aka/rlm_eap_aka.c

index 70e16e691bc933e663c0e15f635de33282b56fd9..767e4a4eebbba6e7a3628f38c58a1c3e344a03b5 100644 (file)
@@ -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;