Interworking: Do not schedule new scan if process is terminating

The GAS query compilation callback may happen after the wpa_supplicant
process has been requested to terminate. Avoid scheduling a new eloop
timeout for a scan in such a case.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2013-01-07 18:44:46 +02:00 committed by Jouni Malinen
parent 569d43c7ae
commit 190e39d9cb

View file

@ -1710,7 +1710,7 @@ static void interworking_next_anqp_fetch(struct wpa_supplicant *wpa_s)
int found = 0; int found = 0;
const u8 *ie; const u8 *ie;
if (!wpa_s->fetch_anqp_in_progress) if (eloop_terminated() || !wpa_s->fetch_anqp_in_progress)
return; return;
dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list) { dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list) {