From: Marcel Holtmann Date: Fri, 24 Jul 2009 07:24:32 +0000 (+0200) Subject: Fix missing reset of network reference when disconnecting X-Git-Tag: 0.36~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33b8b66ff4ec66d8a5426ab10841115a9e7a71b6;p=platform%2Fupstream%2Fconnman.git Fix missing reset of network reference when disconnecting --- diff --git a/plugins/supplicant.c b/plugins/supplicant.c index 492f151..7bbde7c 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -1640,7 +1640,8 @@ static void state_change(struct supplicant_task *task, DBusMessage *msg) task->network = task->pending_network; task->pending_network = NULL; task_connect(task); - } + } else + task->network = NULL; } break; @@ -1659,7 +1660,8 @@ static void state_change(struct supplicant_task *task, DBusMessage *msg) task->network = task->pending_network; task->pending_network = NULL; task_connect(task); - } + } else + task->network = NULL; } break;