summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-11-07 10:14:05 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-07 11:12:01 +0200
commit7ed8eb9c3de85b23cfcb6b3e4cc9616cd4d29830 (patch)
tree1bc34d0c833f990e63f820a6a04cadae0bb183cf /plugins
parentf5d62e40e7d93d3e740810df60e1eb744c248391 (diff)
downloadconnman-7ed8eb9c3de85b23cfcb6b3e4cc9616cd4d29830.tar.gz
connman-7ed8eb9c3de85b23cfcb6b3e4cc9616cd4d29830.tar.bz2
connman-7ed8eb9c3de85b23cfcb6b3e4cc9616cd4d29830.zip
wifi: Skip service if there is error while loading its settings
If service settings cannot be loaded, then skip that service. Thanks for Felipe Tonello for reporting the issue.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/wifi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 631d0cc3..d2ab3b0d 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -384,6 +384,8 @@ static int get_hidden_connections(int max_ssids,
continue;
keyfile = connman_storage_load_service(services[i]);
+ if (keyfile == NULL)
+ continue;
value = g_key_file_get_boolean(keyfile,
services[i], "Hidden", NULL);
@@ -825,6 +827,8 @@ static int get_latest_connections(int max_ssids,
continue;
keyfile = connman_storage_load_service(services[i]);
+ if (keyfile == NULL)
+ continue;
str = g_key_file_get_string(keyfile,
services[i], "Favorite", NULL);