summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/service.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index 2437901a..79edb2de 100755
--- a/src/service.c
+++ b/src/service.c
@@ -998,7 +998,11 @@ static int service_ext_save(struct connman_service *service)
if (service->type != CONNMAN_SERVICE_TYPE_WIFI)
return -EINVAL;
- keyfile = g_key_file_new();
+ keyfile = connman_storage_load_service(service->identifier);
+
+ if (!keyfile)
+ keyfile = g_key_file_new();
+
if (!keyfile)
return -EIO;