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.
This commit is contained in:
Denis Kenzior 2021-02-10 15:41:37 -06:00
parent 6421b3c5c1
commit c2104b62a9
1 changed files with 0 additions and 3 deletions

View File

@ -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();
}