unsigned int order;
char *name;
char *passphrase;
+ char *profile;
struct connman_device *device;
struct connman_network *network;
};
if (service->network != NULL)
connman_network_unref(service->network);
+ g_free(service->profile);
g_free(service->name);
g_free(service->passphrase);
g_free(service->identifier);
service->identifier = g_strdup(identifier);
+ service->profile = g_strdup(__connman_profile_active_ident());
+
__connman_storage_load_service(service);
iter = g_sequence_insert_sorted(service_list, service,
{
DBG("service %p", service);
+ if (service->profile == NULL)
+ return -EINVAL;
+
return 0;
}
{
DBG("service %p", service);
+ if (service->profile == NULL)
+ return -EINVAL;
+
return 0;
}