mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-26 13:49:35 -05:00
Handle EVENT_RX_MGMT validation consistently
All the other places processing EVENT_RX_MGMT events assume that the event data is included, so not much point in verifying that here. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
41fe8b42b5
commit
34caf71a09
@ -692,7 +692,7 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
|
|||||||
#ifndef CONFIG_NO_STDOUT_DEBUG
|
#ifndef CONFIG_NO_STDOUT_DEBUG
|
||||||
int level = MSG_DEBUG;
|
int level = MSG_DEBUG;
|
||||||
|
|
||||||
if (event == EVENT_RX_MGMT && data && data->rx_mgmt.frame &&
|
if (event == EVENT_RX_MGMT && data->rx_mgmt.frame &&
|
||||||
data->rx_mgmt.frame_len >= 24) {
|
data->rx_mgmt.frame_len >= 24) {
|
||||||
const struct ieee80211_hdr *hdr;
|
const struct ieee80211_hdr *hdr;
|
||||||
u16 fc;
|
u16 fc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user