This patch fixes invalid app_path on 'Join' method call - the daemon
tried to use the value of app_root API argument, while it should use
path discovered by scanning result of GetManagedObjects() call.
Change-Id: I4a7c8587d06e16aca7a6a081a6711a9fec52e872
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
struct l_dbus_message *msg;
struct mesh_agent *agent;
char *sender;
struct l_dbus_message *msg;
struct mesh_agent *agent;
char *sender;
struct mesh_node *node;
uint32_t disc_watch;
uint8_t *uuid;
struct mesh_node *node;
uint32_t disc_watch;
uint8_t *uuid;
return false;
owner = join_pending->sender;
return false;
owner = join_pending->sender;
- path = join_pending->app_path;
+ path = node_get_app_path(join_pending->node);
if (status == PROV_ERR_SUCCESS &&
!node_add_pending_local(join_pending->node, info))
if (status == PROV_ERR_SUCCESS &&
!node_add_pending_local(join_pending->node, info))
join_pending->sender = l_strdup(sender);
join_pending->msg = l_dbus_message_ref(msg);
join_pending->sender = l_strdup(sender);
join_pending->msg = l_dbus_message_ref(msg);
- join_pending->app_path = app_path;
/* Try to create a temporary node */
node_join(app_path, sender, join_pending->uuid, node_init_cb);
/* Try to create a temporary node */
node_join(app_path, sender, join_pending->uuid, node_init_cb);