diff mbox series

[1/1] mesh: Fix provisioning agent method call failure

Message ID 1579695370-12779-1-git-send-email-shaunak.01@samsung.com
State New
Headers show
Series [1/1] mesh: Fix provisioning agent method call failure | expand

Commit Message

Shaunak Soman Jan. 22, 2020, 12:16 p.m. UTC
Provisioning agent interface methods PublicKey, PrivateKey and
Cancel do not accept any parameters. So, while invoking them
explicitly set the parameters to "".
---
 mesh/agent.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/mesh/agent.c b/mesh/agent.c
index 9f9399f..3ab3893 100644
--- a/mesh/agent.c
+++ b/mesh/agent.c
@@ -515,6 +515,8 @@  static int request_key(struct mesh_agent *agent,
 						MESH_PROVISION_AGENT_INTERFACE,
 						method_name);
 
+	l_dbus_message_set_arguments(msg, "");
+
 	l_debug("Send key request to %s %s", agent->owner, agent->path);
 
 	l_dbus_send_with_reply(dbus_get_bus(), msg, key_reply, agent, NULL);
@@ -649,5 +651,8 @@  void mesh_agent_cancel(struct mesh_agent *agent)
 	msg = l_dbus_message_new_method_call(dbus, agent->owner, agent->path,
 						MESH_PROVISION_AGENT_INTERFACE,
 						"Cancel");
+
+	l_dbus_message_set_arguments(msg, "");
+
 	l_dbus_send(dbus, msg);
 }