projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
EAPOL auth: Avoid recursive wpa_sm_step() on WPA_DEAUTH case
[mech_eap.git]
/
src
/
ap
/
wpa_auth.c
diff --git
a/src/ap/wpa_auth.c
b/src/ap/wpa_auth.c
index
4fead13
..
5ebfe5e
100644
(file)
--- a/
src/ap/wpa_auth.c
+++ b/
src/ap/wpa_auth.c
@@
-1759,6
+1759,14
@@
int wpa_auth_sm_event(struct wpa_state_machine *sm, wpa_event event)
wpa_remove_ptk(sm);
}
+ if (sm->in_step_loop) {
+ /*
+ * wpa_sm_step() is already running - avoid recursive call to
+ * it by making the existing loop process the new update.
+ */
+ sm->changed = TRUE;
+ return 0;
+ }
return wpa_sm_step(sm);
}