From b154a24e8388287f19d6085c44bcf163f5e88276 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Mon, 9 Dec 2013 14:47:55 +0200 Subject: [PATCH] Fix a never-ending loop with multiple radios in wpa_supplicant 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 --- wpa_supplicant/wpa_supplicant.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index e8bca8a8a..2d6272b1c 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -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",