Fix invalid D-Bus path with finished scans without hidden SSIDs
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 12 Jun 2010 12:57:30 +0000 (14:57 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 12 Jun 2010 12:57:30 +0000 (14:57 +0200)
plugins/supplicant.c

index f7e9a1b..276fd91 100644 (file)
@@ -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;
        }