From: Jouni Malinen Date: Mon, 6 Jan 2014 15:54:16 +0000 (+0200) Subject: Fix TX status processing during AP mode shutdown in wpa_supplicant X-Git-Tag: hostap_2_1~163 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6fc61e180ed0706fb7784e768649541974c7b7f5;p=thirdparty%2Fhostap.git Fix TX status processing during AP mode shutdown in wpa_supplicant A TX status event could be received after the AP interface has already been deinitialized. This needs to check for NULL pointer before trying to indicate the event to AP functions. Signed-hostap: Jouni Malinen --- diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index 412db23bc..ea4e6bba5 100644 --- a/wpa_supplicant/ap.c +++ b/wpa_supplicant/ap.c @@ -680,6 +680,8 @@ void ap_eapol_tx_status(void *ctx, const u8 *dst, { #ifdef NEED_AP_MLME struct wpa_supplicant *wpa_s = ctx; + if (!wpa_s->ap_iface) + return; hostapd_tx_status(wpa_s->ap_iface->bss[0], dst, data, len, ack); #endif /* NEED_AP_MLME */ }