From: Marcel Holtmann Date: Mon, 5 Jan 2009 03:03:14 +0000 (+0100) Subject: Fix problem with wpa_supplicant disconnect X-Git-Tag: 0.7~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71d46c63b8394c8bcf029186a7d2f43073512e92;p=platform%2Fupstream%2Fconnman.git Fix problem with wpa_supplicant disconnect --- diff --git a/plugins/supplicant.c b/plugins/supplicant.c index 9721616..1cf085f 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -1050,6 +1050,9 @@ static void state_change(struct supplicant_task *task, DBusMessage *msg) if (task->state == STATE_SCANNING) connman_device_set_scanning(task->device, TRUE); + if (task->network == NULL) + return; + switch (task->state) { case STATE_COMPLETED: /* carrier on */