aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server/eap_sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eap_server/eap_sim.c')
-rw-r--r--src/eap_server/eap_sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap_server/eap_sim.c b/src/eap_server/eap_sim.c
index 05c40d0..436c655 100644
--- a/src/eap_server/eap_sim.c
+++ b/src/eap_server/eap_sim.c
@@ -485,7 +485,7 @@ static void eap_sim_process_start(struct eap_sm *sm,
}
identity_len = sm->identity_len;
- if (identity_len > 0 && sm->identity[identity_len - 1] == '\0') {
+ while (identity_len > 0 && sm->identity[identity_len - 1] == '\0') {
wpa_printf(MSG_DEBUG, "EAP-SIM: Workaround - drop last null "
"character from identity");
identity_len--;