]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-AKA server: Remove unnecessary protocol version check
authorJouni Malinen <j@w1.fi>
Sat, 1 Sep 2012 18:38:25 +0000 (21:38 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 1 Sep 2012 18:38:25 +0000 (21:38 +0300)
This validation is done automatically as part of the prefix value
use in the username.

Signed-hostap: Jouni Malinen <j@w1.fi>

src/eap_server/eap_server_aka.c

index 72753fc5712d57b5495bf5231d4df4a950b0d554..628b0c87c1906f53402f6c488014ad7b05a5c310 100644 (file)
@@ -641,14 +641,6 @@ static void eap_aka_determine_identity(struct eap_sm *sm,
                data->reauth = eap_sim_db_get_reauth_entry(
                        sm->eap_sim_db_priv, username);
                os_free(username);
-               if (data->reauth &&
-                   (data->reauth->reauth_id[0] ==
-                    EAP_AKA_PRIME_REAUTH_ID_PREFIX) !=
-                   (data->eap_method == EAP_TYPE_AKA_PRIME)) {
-                       wpa_printf(MSG_DEBUG, "EAP-AKA: Reauth data "
-                                  "was for different AKA version");
-                       data->reauth = NULL;
-               }
                if (data->reauth == NULL) {
                        wpa_printf(MSG_DEBUG, "EAP-AKA: Unknown reauth "
                                   "identity - request full auth identity");