]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/wpa_auth.c
Clean up get_seqnum() use for IPN
authorJouni Malinen <j@w1.fi>
Sat, 26 Oct 2013 10:30:28 +0000 (13:30 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 26 Oct 2013 12:56:07 +0000 (15:56 +0300)
commit03610ad28d1a93cf6f95150ed76f234c1e54ebd5
tree1ab88ffc8891a039da905f272d56fd0b7a6ab25f
parent29179b881ed35ec351d663980176717d33bed65e
Clean up get_seqnum() use for IPN

Some driver wrappers may implement this by writing eight octets even
though IPN is only six octets. Use a separate WPA_KEY_RSC_LEN (8) octet
buffer in the call to make sure there is enough buffer room available
for the full returned value and then copy it to IPN field.

The previous implementation used the following igtk field as the extra
buffer and then initialized that field afterwards, so this change does
not fix any real issue in behavior, but it is cleaner to use an explicit
buffer of the maximum length for get_seqnum().

Signed-hostap: Jouni Malinen <j@w1.fi>
src/ap/wpa_auth.c