diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-11-07 10:14:05 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-11-07 11:12:01 +0200 |
commit | 7ed8eb9c3de85b23cfcb6b3e4cc9616cd4d29830 (patch) | |
tree | 1bc34d0c833f990e63f820a6a04cadae0bb183cf /plugins | |
parent | f5d62e40e7d93d3e740810df60e1eb744c248391 (diff) | |
download | connman-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.c | 4 |
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); |