From: Andrei Otcheretianski Date: Wed, 3 Apr 2019 15:17:14 +0000 (+0300) Subject: Do not clear FT IEs twice in sme_deinit() X-Git-Tag: hostap_2_8~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31cf52bf2e4a571957d231799440bf56e943ebc5;p=thirdparty%2Fhostap.git Do not clear FT IEs twice in sme_deinit() Remove FT IEs clearing from sme_deinit() as it is done twice. The sme_clear_on_disassoc() call to sme_update_ft_ies() takes care of this. Signed-off-by: Andrei Otcheretianski --- diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index 383f858a0..17a984d1a 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -1993,9 +1993,6 @@ void sme_clear_on_disassoc(struct wpa_supplicant *wpa_s) void sme_deinit(struct wpa_supplicant *wpa_s) { - os_free(wpa_s->sme.ft_ies); - wpa_s->sme.ft_ies = NULL; - wpa_s->sme.ft_ies_len = 0; sme_clear_on_disassoc(wpa_s); eloop_cancel_timeout(sme_assoc_timer, wpa_s, NULL);