]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-FAST peer: Remove fixed return value from eap_fast_parse_phase1()
authorJouni Malinen <j@w1.fi>
Sat, 20 Feb 2016 08:06:48 +0000 (10:06 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 20 Feb 2016 08:07:29 +0000 (10:07 +0200)
This function was always returning 0, so the error path was unreachable.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_peer/eap_fast.c

index 8bd1bdb784b8a34eb27cab2b2e60dbab100f2d62..f03cd4af5c98cce1532ac73675ab42efe764cea2 100644 (file)
@@ -113,8 +113,8 @@ static int eap_fast_session_ticket_cb(void *ctx, const u8 *ticket, size_t len,
 }
 
 
-static int eap_fast_parse_phase1(struct eap_fast_data *data,
-                                const char *phase1)
+static void eap_fast_parse_phase1(struct eap_fast_data *data,
+                                 const char *phase1)
 {
        const char *pos;
 
@@ -140,8 +140,6 @@ static int eap_fast_parse_phase1(struct eap_fast_data *data,
                wpa_printf(MSG_DEBUG, "EAP-FAST: Using binary format for PAC "
                           "list");
        }
-
-       return 0;
 }
 
 
@@ -159,10 +157,8 @@ static void * eap_fast_init(struct eap_sm *sm)
        data->fast_version = EAP_FAST_VERSION;
        data->max_pac_list_len = 10;
 
-       if (config->phase1 && eap_fast_parse_phase1(data, config->phase1) < 0) {
-               eap_fast_deinit(sm, data);
-               return NULL;
-       }
+       if (config->phase1)
+               eap_fast_parse_phase1(data, config->phase1);
 
        if (eap_peer_select_phase2_methods(config, "auth=",
                                           &data->phase2_types,