From: Tomasz Bursztyka Date: Mon, 9 Dec 2013 12:47:55 +0000 (+0200) Subject: Fix a never-ending loop with multiple radios in wpa_supplicant X-Git-Tag: hostap_2_1~456 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b154a24e8388287f19d6085c44bcf163f5e88276;p=thirdparty%2Fhostap.git 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 --- 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",