service: Load ipconfig according to service identifier
authorYu A Wang <yu.a.wang@intel.com>
Mon, 10 Oct 2011 01:44:51 +0000 (21:44 -0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 10 Oct 2011 16:31:09 +0000 (18:31 +0200)
We have seperate the storage file to different directories according
to service identifier, then we need to load it according to service
identifier too.

Fixes BMC#23475

src/service.c

index 1b95995..dc89078 100644 (file)
@@ -5120,7 +5120,7 @@ void __connman_service_read_ip4config(struct connman_service *service)
        if (service->ipconfig_ipv4 == NULL)
                return;
 
-       keyfile = __connman_storage_load_global();
+       keyfile = connman_storage_load_service(service->identifier);
        if (keyfile == NULL)
                return;