Fix SAE group selection in an error case
authorJouni Malinen <j@w1.fi>
Sat, 20 Jun 2015 20:29:57 +0000 (23:29 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 20 Jun 2015 20:29:57 +0000 (23:29 +0300)
commit04e6c4cc50fff20f2f79bc757f7883ad7d8f06a4
tree34772e92d2ca7cec7c27d0967abfef1e592d88c7
parent3dce85ceb07a6205c51f52592c8d548da475be97
Fix SAE group selection in an error case

The sae_groups parameter is zero terminated array, not -1 terminated, so
must check the value against <= 0 to break out from the loop.

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