aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server/eap_aka.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eap_server/eap_aka.c')
-rw-r--r--src/eap_server/eap_aka.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/eap_server/eap_aka.c b/src/eap_server/eap_aka.c
index 7ec67ef..462e50a 100644
--- a/src/eap_server/eap_aka.c
+++ b/src/eap_server/eap_aka.c
@@ -851,7 +851,10 @@ static void eap_aka_process_client_error(struct eap_sm *sm,
{
wpa_printf(MSG_DEBUG, "EAP-AKA: Client reported error %d",
attr->client_error_code);
- eap_aka_state(data, FAILURE);
+ if (data->notification == EAP_SIM_SUCCESS && data->use_result_ind)
+ eap_aka_state(data, SUCCESS);
+ else
+ eap_aka_state(data, FAILURE);
}