aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/wpa_auth_ft.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-04-10 19:40:35 (GMT)
committerJouni Malinen <j@w1.fi>2010-04-10 19:40:35 (GMT)
commit0f857f43df28c5bb660a93cf8f29db970642ccf0 (patch)
treeb5af8d1136cedee68065a788cebc93c34d496f52 /src/ap/wpa_auth_ft.c
parent0d7b44099f7b105495eadd58d3581051e448e67d (diff)
downloadhostap-0f857f43df28c5bb660a93cf8f29db970642ccf0.zip
hostap-0f857f43df28c5bb660a93cf8f29db970642ccf0.tar.gz
hostap-0f857f43df28c5bb660a93cf8f29db970642ccf0.tar.bz2
FT: Validate MDIE and FTIE in FT 4-way handshake message 2/4
Diffstat (limited to 'src/ap/wpa_auth_ft.c')
-rw-r--r--src/ap/wpa_auth_ft.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ap/wpa_auth_ft.c b/src/ap/wpa_auth_ft.c
index 2c441eb..0ab3fb4 100644
--- a/src/ap/wpa_auth_ft.c
+++ b/src/ap/wpa_auth_ft.c
@@ -692,6 +692,11 @@ u8 * wpa_sm_write_assoc_resp_ies(struct wpa_state_machine *sm, u8 *pos,
ftie_len = res;
pos += res;
+ os_free(sm->assoc_resp_ftie);
+ sm->assoc_resp_ftie = os_malloc(ftie_len);
+ if (sm->assoc_resp_ftie)
+ os_memcpy(sm->assoc_resp_ftie, ftie, ftie_len);
+
_ftie = (struct rsn_ftie *) (ftie + 2);
if (auth_alg == WLAN_AUTH_FT)
_ftie->mic_control[1] = 3; /* Information element count */