summaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/preauth_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'wpa_supplicant/preauth_test.c')
-rw-r--r--wpa_supplicant/preauth_test.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/wpa_supplicant/preauth_test.c b/wpa_supplicant/preauth_test.c
index a732828..44dba66 100644
--- a/wpa_supplicant/preauth_test.c
+++ b/wpa_supplicant/preauth_test.c
@@ -185,10 +185,8 @@ static void test_eapol_clean(struct wpa_supplicant *wpa_s)
pmksa_candidate_free(wpa_s->wpa);
wpa_sm_deinit(wpa_s->wpa);
scard_deinit(wpa_s->scard);
- if (wpa_s->ctrl_iface) {
- wpa_supplicant_ctrl_iface_deinit(wpa_s->ctrl_iface);
- wpa_s->ctrl_iface = NULL;
- }
+ wpa_supplicant_ctrl_iface_deinit(wpa_s, wpa_s->ctrl_iface);
+ wpa_s->ctrl_iface = NULL;
wpa_config_free(wpa_s->conf);
}