From: Jouni Malinen Date: Sat, 26 Apr 2014 09:09:28 +0000 (+0300) Subject: Check rx_mgmt::frame more consistently against NULL X-Git-Tag: hostap_2_2~214 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0333c8dd59b9e254d3fc725c984b1c0cd3d496a;p=thirdparty%2Fhostap.git Check rx_mgmt::frame more consistently against NULL If a driver wrapper misbehaves and does not indicate a frame body in the event, core hostapd code should handle this consistently since that case was already checked for in one location. Signed-off-by: Jouni Malinen --- diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index b3cfade9f..fb095efb4 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -1001,6 +1001,8 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, break; #endif /* NEED_AP_MLME */ case EVENT_RX_MGMT: + if (!data->rx_mgmt.frame) + break; #ifdef NEED_AP_MLME if (hostapd_mgmt_rx(hapd, &data->rx_mgmt) > 0) break;