commit c2104b62a970af90673c351716c83cc81e0fad1c
parent 6421b3c5c15a606ebf90f4bc616546be6c665f5e
Author: Denis Kenzior <denkenz@gmail.com>
Date: Wed, 10 Feb 2021 15:41:37 -0600
unit: Drop eapol_sm_free calls
WSC EAP method always results in failure, even if successful. Failed
eapol_sm sessions are auto-cleaned, so there's no need to do this
explicitly. Also eapol_exit() will clean up any left-over sessions, so
drop this to make the code a bit simpler.
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/unit/test-wsc.c b/unit/test-wsc.c
@@ -2319,9 +2319,6 @@ static void test_ap_sta_run(struct test_ap_sta_data *s)
s->to_sta_data, len, false);
}
- eapol_sm_free(s->ap_sm);
- eapol_sm_free(s->sta_sm);
-
eapol_exit();
eap_exit();
}