mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
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 <j@w1.fi>
This commit is contained in:
parent
675b1f891b
commit
6fc61e180e
@ -680,6 +680,8 @@ void ap_eapol_tx_status(void *ctx, const u8 *dst,
|
|||||||
{
|
{
|
||||||
#ifdef NEED_AP_MLME
|
#ifdef NEED_AP_MLME
|
||||||
struct wpa_supplicant *wpa_s = ctx;
|
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);
|
hostapd_tx_status(wpa_s->ap_iface->bss[0], dst, data, len, ack);
|
||||||
#endif /* NEED_AP_MLME */
|
#endif /* NEED_AP_MLME */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user