projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5d62e4
)
wifi: Skip service if there is error while loading its settings
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Wed, 7 Nov 2012 08:14:05 +0000
(10:14 +0200)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Wed, 7 Nov 2012 09:12:01 +0000
(11:12 +0200)
If service settings cannot be loaded, then skip that service.
Thanks for Felipe Tonello for reporting the issue.
plugins/wifi.c
patch
|
blob
|
history
diff --git
a/plugins/wifi.c
b/plugins/wifi.c
index
631d0cc
..
d2ab3b0
100644
(file)
--- 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);