|
@@ -1045,6 +1045,11 @@ static void eap_ttls_process_phase2_eap_response(struct eap_sm *sm,
|
|
|
next_type = sm->user->methods[0].method;
|
|
|
sm->user_eap_method_index = 1;
|
|
|
wpa_printf(MSG_DEBUG, "EAP-TTLS: try EAP type %d", next_type);
|
|
|
+ if (eap_ttls_phase2_eap_init(sm, data, next_type)) {
|
|
|
+ wpa_printf(MSG_DEBUG, "EAP-TTLS: Failed to initialize "
|
|
|
+ "EAP type %d", next_type);
|
|
|
+ eap_ttls_state(data, FAILURE);
|
|
|
+ }
|
|
|
break;
|
|
|
case PHASE2_METHOD:
|
|
|
if (data->ttls_version > 0) {
|
|
@@ -1066,12 +1071,6 @@ static void eap_ttls_process_phase2_eap_response(struct eap_sm *sm,
|
|
|
__func__, data->state);
|
|
|
break;
|
|
|
}
|
|
|
-
|
|
|
- if (eap_ttls_phase2_eap_init(sm, data, next_type)) {
|
|
|
- wpa_printf(MSG_DEBUG, "EAP-TTLS: Failed to initialize EAP "
|
|
|
- "type %d", next_type);
|
|
|
- eap_ttls_state(data, FAILURE);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
|