From 9908fa996e14f9ee8ae7b14faf921911fb759f83 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 12 Jun 2010 14:57:30 +0200 Subject: [PATCH] Fix invalid D-Bus path with finished scans without hidden SSIDs --- plugins/supplicant.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/plugins/supplicant.c b/plugins/supplicant.c index f7e9a1b..276fd91 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -1940,12 +1940,15 @@ static void get_properties(struct supplicant_task *task) char *path; path = g_slist_nth_data(task->scan_results, 0); - if (path == NULL && task->hidden_found == TRUE) { - /* - * We're done with regular scanning, let's enable the missing - * network blocks if there are hidden SSIDs around. - */ - hidden_block_enable(task); + if (path == NULL) { + if (task->hidden_found == TRUE) { + /* + * We're done with regular scanning, let's enable + * the missing network blocks if there are hidden + * SSIDs around. + */ + hidden_block_enable(task); + } goto noscan; } -- 2.7.4