From c2104b62a970af90673c351716c83cc81e0fad1c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 10 Feb 2021 15:41:37 -0600 Subject: [PATCH] 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. --- unit/test-wsc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/unit/test-wsc.c b/unit/test-wsc.c index ca921e90..7b24e6c5 100644 --- 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(); }