HS 2.0: Clarify OSU Provider list length validation
authorJouni Malinen <j@w1.fi>
Thu, 4 Dec 2014 22:56:05 +0000 (00:56 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 4 Dec 2014 22:56:05 +0000 (00:56 +0200)
commit0570a3ea7d87bd106d557ebdf3a321d1bf61d04c
tree694808b84e53b8c6f8016756fdb0d1337fb37ac1
parent56b352ec58c9fdcf01c9d3fb94953bc0bd5850ce
HS 2.0: Clarify OSU Provider list length validation

The previous version was somewhat too complex for some static analyzers.
Use local variables for the extracted length fields and explicitly
compare these against the remaining buffer length. (CID 68121)

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