diff options
author | Mohamed Abbas <mabbas@linux.intel.com> | 2010-11-22 12:37:53 -0800 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-11-23 01:15:50 +0100 |
commit | 0dca8e04b91eed41c0dc77bc63145f1682546b11 (patch) | |
tree | 1bace6bb7d1e787fc554536105a4b1b3eaef7ec7 /plugins | |
parent | 8ada288bd6250fb4dd724b0208e66f9013ca3c34 (diff) | |
download | connman-0dca8e04b91eed41c0dc77bc63145f1682546b11.tar.gz connman-0dca8e04b91eed41c0dc77bc63145f1682546b11.tar.bz2 connman-0dca8e04b91eed41c0dc77bc63145f1682546b11.zip |
ofono: Set network group when adding the network
The network probing code path already calls profile_add_network, calling
it again from the oFono network probing hook leads to wrong reference
counting.
Fixes BMC#9985
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ofono.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c index 691037db..47afe139 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -363,7 +363,6 @@ static void create_service(struct connman_network *network) static int network_probe(struct connman_network *network) { - create_service(network); return 0; } @@ -540,6 +539,9 @@ static int add_network(struct connman_device *device, hash_path = connman_network_get_string(network, "Path"); if (hash_path == NULL) goto error; + + create_service(network); + connman_network_ref(network); g_hash_table_insert(network_hash, (char *)hash_path, network); |