]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Fix clearing of IGTK PN in handshake retransmit test functions
authorMathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
Sun, 1 Apr 2018 17:16:47 +0000 (19:16 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 1 Apr 2018 18:47:16 +0000 (21:47 +0300)
commit9f917339ccda37047ce79916c92fdfae6c340f52
treec31d90fd6cddf8545cb981a1c36e2227d44eec6e
parent20daa57b92f288ed845129fc63eb262863eb64fe
tests: Fix clearing of IGTK PN in handshake retransmit test functions

When locating the position of the IGTK PN in the key data, we also need
to skip the KDE header, in addition to the keyid field. This fixes
hostapd RESEND_M3 and RESEND_GROUP_M1 behavior when PMF is negotiated
for the association. Previously, the IGTK KDE ended up getting
practically hidden since zeroing of the PN ended up clearing the KDE OUI
and Type fields.

Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
src/ap/wpa_auth.c