]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Do not schedule new scan if process is terminating
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 7 Jan 2013 16:44:46 +0000 (18:44 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 7 Jan 2013 16:44:46 +0000 (18:44 +0200)
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>

wpa_supplicant/interworking.c

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