aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-10-18 19:51:30 (GMT)
committerJouni Malinen <j@w1.fi>2017-10-18 19:51:30 (GMT)
commitdc4d271c6dc48254b7a1f547955bdd68a76e04f0 (patch)
treeaf8cb8e6559c9b5fe1383638bbedc4cc2cb2f1be /wpa_supplicant/events.c
parent4bb2272bab3330b783916f7bd4651e8970488bf1 (diff)
downloadhostap-dc4d271c6dc48254b7a1f547955bdd68a76e04f0.zip
hostap-dc4d271c6dc48254b7a1f547955bdd68a76e04f0.tar.gz
hostap-dc4d271c6dc48254b7a1f547955bdd68a76e04f0.tar.bz2
DPP: Update AES-SIV AD for DPP Authentication frames
The protocol design was updated to protect the six octets in the header before the attributes. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 79df9b3..820cc52 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -3696,8 +3696,8 @@ static void wpas_event_rx_mgmt_action(struct wpa_supplicant *wpa_s,
payload[0] == WLAN_PA_VENDOR_SPECIFIC &&
WPA_GET_BE24(&payload[1]) == OUI_WFA &&
payload[4] == DPP_OUI_TYPE) {
- payload += 5;
- plen -= 5;
+ payload++;
+ plen--;
wpas_dpp_rx_action(wpa_s, mgmt->sa, payload, plen, freq);
return;
}