diff options
| author | Jouni Malinen <j@w1.fi> | 2015-07-26 16:28:51 +0300 |
|---|---|---|
| committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:20:01 -0600 |
| commit | 2e8948b763bbb596a4da4b294837fc654eea10d8 (patch) | |
| tree | 9e4a22ebb80f788bfd8fe02b8f6e1802e858fecc /src/fst | |
| parent | e20a559b6fa47822d7626ef5ba22064185899778 (diff) | |
| download | android_external_wpa_supplicant_8-2e8948b763bbb596a4da4b294837fc654eea10d8.tar.gz android_external_wpa_supplicant_8-2e8948b763bbb596a4da4b294837fc654eea10d8.tar.bz2 android_external_wpa_supplicant_8-2e8948b763bbb596a4da4b294837fc654eea10d8.zip | |
FST: Fix get_peer_mbies interface fetching in multi-group case
The foreach_fst_group() loop needs "break-if-found", not
"continue-if-not-found" to do the search iteration properly. If there
were multiple groups, the previous design could have failed to find the
interface.
Change-Id: I6e6e8518fa2f6c552f6ace86cce328fc27382167
Signed-off-by: Jouni Malinen <j@w1.fi>
Git-commit: f4843c26451b520351aa485e3bac608c8c1bf405
Git-repo: git://w1.fi/srv/git/hostap.git
CRs-Fixed: 891455
Diffstat (limited to 'src/fst')
| -rw-r--r-- | src/fst/fst_ctrl_iface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fst/fst_ctrl_iface.c b/src/fst/fst_ctrl_iface.c index 76d4776b..d0907188 100644 --- a/src/fst/fst_ctrl_iface.c +++ b/src/fst/fst_ctrl_iface.c @@ -574,8 +574,8 @@ static int get_peer_mbies(const char *params, char *buf, size_t buflen) foreach_fst_group(g) { iface = fst_group_get_iface_by_name(g, ifname); - if (!iface) - continue; + if (iface) + break; } if (!iface) goto problem; |
