aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Kourt <tim.a.kourt@linux.intel.com>2020-02-26 15:32:23 -0800
committerDenis Kenzior <denkenz@gmail.com>2020-02-27 16:26:32 -0600
commit4fdb6bc9faa47003ec038ccac3dff01fec28cf6c (patch)
treebf12df901f56d0d846d43c0d56d1b78f991ed1ac
parent58737e02d5886a18d36d0d4f3eddcd648b561ed9 (diff)
downloadiwd-4fdb6bc9faa47003ec038ccac3dff01fec28cf6c.tar.gz
client: Reorder interface creation ops
Add the newly created proxy objects into the queue before the interface specific initialization logic takes place. This way the new proxy objects can be used within the initialization procedures.
-rw-r--r--client/dbus-proxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c
index 83f91eea8..37a095127 100644
--- a/client/dbus-proxy.c
+++ b/client/dbus-proxy.c
@@ -572,10 +572,10 @@ static void proxy_interface_create(const char *path,
proxy->path = l_strdup(path);
proxy->type = interface_type;
+ l_queue_push_tail(proxy_interfaces, proxy);
+
if (interface_type->ops && interface_type->ops->create)
proxy->data = interface_type->ops->create();
-
- l_queue_push_tail(proxy_interfaces, proxy);
}
}