Browse Source

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.
upstream/latest
Denis Kenzior 2 years ago
parent
commit
c2104b62a9
  1. 3
      unit/test-wsc.c

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

Loading…
Cancel
Save