EAP-GPSK: Clean up CSuite_List length validation (CID 62854)
authorJouni Malinen <j@w1.fi>
Wed, 18 Jun 2014 14:14:59 +0000 (17:14 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 18 Jun 2014 14:14:59 +0000 (17:14 +0300)
commit4075e2fe77927f4e845e7319c726bf406d574627
tree9b2992cd1ebef76ee03e49cd0848e1fc4707fe34
parent2dbc959699c9180f0923a5926079d823115025f0
EAP-GPSK: Clean up CSuite_List length validation (CID 62854)

Use a local variable and size_t in length comparison to make this easier
for static analyzers to understand. In addition, set the return list and
list_len values at the end of the function, i.e., only in success case.
These do not change the actual behavior of the only caller for this
function, but clarifies what the helper function is doing.

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