HS 2.0R2: Fix OSEN IE parsing for in cipher setup (CID 68132)
authorJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 21:36:42 +0000 (00:36 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 21:36:42 +0000 (00:36 +0300)
commit137ff332fd279cbf070e22b8a104606447d0506b
tree25ceccd2130d730c51e3ac54262b0d8174d52625
parent2703fb4ad92f9114e76ffc5d3015ec30cc5e1448
HS 2.0R2: Fix OSEN IE parsing for in cipher setup (CID 68132)

The OSEN code path hardcodes number of struct wpa_ie_data items.
However, it did not clear the full structure and some uninitialized
fields could have been used (e.g., ie.mgmt_group_cipher for a debug
print and ie.capabilities for checking MFPC). Fix this by clearing the
ie data before filling in the hardcoded OSEN values.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wpa_supplicant.c