]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix a never-ending loop with multiple radios in wpa_supplicant
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Mon, 9 Dec 2013 12:47:55 +0000 (14:47 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 15 Dec 2013 05:16:05 +0000 (21:16 -0800)
Commit 202dec2a94695a696236ee5a2ad1be0905ccea14 introduced a never
ending loop for a case where a single wpa_supplicant process is used
with multiple radios. Fix this by advancing the iface pointer properly
to the next interface in the loop until a NULL pointer is hit.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
wpa_supplicant/wpa_supplicant.c

index e8bca8a8a1f4c4bb045f203b0f72082d3c28b476..2d6272b1c6fe83e89a880419da00334919ea39f8 100644 (file)
@@ -2905,6 +2905,8 @@ static struct wpa_radio * radio_add_interface(struct wpa_supplicant *wpa_s,
                        dl_list_add(&radio->ifaces, &wpa_s->radio_list);
                        return radio;
                }
+
+               iface = iface->next;
        }
 
        wpa_printf(MSG_DEBUG, "Add interface %s to a new radio %s",