WNM: Fix neighbor report subelement parser
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 7 Apr 2014 21:53:55 +0000 (00:53 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 7 Apr 2014 22:01:55 +0000 (01:01 +0300)
commit1aa6f953bb7b9093decc5817a2a7eaacf2eae61b
tree78d3e2e440da5504080bcd6c6f906c89b4910372
parent5583b8d1eb576a1be8492f0d58ebc4677260d477
WNM: Fix neighbor report subelement parser

Only the Neighbor Report element should be included here, so verify that
the element id matches. In addition, verify that each subelement has
valid length before using the data.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/common/ieee802_11_defs.h
wpa_supplicant/wnm_sta.c