projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3dce85c
)
Fix SAE group selection in an error case
author
Jouni Malinen
<j@w1.fi>
Sat, 20 Jun 2015 20:29:57 +0000
(23:29 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sat, 20 Jun 2015 20:29:57 +0000
(23:29 +0300)
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
patch
|
blob
|
history
diff --git
a/wpa_supplicant/sme.c
b/wpa_supplicant/sme.c
index
2f4dc5a
..
234670a
100644
(file)
--- a/
wpa_supplicant/sme.c
+++ b/
wpa_supplicant/sme.c
@@
-67,7
+67,7
@@
static int sme_set_sae_group(struct wpa_supplicant *wpa_s)
for (;;) {
int group = groups[wpa_s->sme.sae_group_index];
- if (group < 0)
+ if (group <
=
0)
break;
if (sae_set_group(&wpa_s->sme.sae, group) == 0) {
wpa_dbg(wpa_s, MSG_DEBUG, "SME: Selected SAE group %d",