Fix a never-ending loop with multiple radios in wpa_supplicant
Commit 202dec2a94
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>
This commit is contained in:
parent
493ba877c3
commit
b154a24e83
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
dl_list_add(&radio->ifaces, &wpa_s->radio_list);
|
||||||
return radio;
|
return radio;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iface = iface->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "Add interface %s to a new radio %s",
|
wpa_printf(MSG_DEBUG, "Add interface %s to a new radio %s",
|
||||||
|
|
Loading…
Reference in a new issue