From 7d7ce644137d20f7893dd25f3c772618bfaf0504 Mon Sep 17 00:00:00 2001 From: taesub kim Date: Thu, 21 Jun 2018 17:46:01 +0900 Subject: [PATCH] Fix dbus method return value #2 Change-Id: Id2fde617f3160ef03c75ce5ebbf54043f0f94697 Signed-off-by: Taesub Kim --- src/utils/util.c | 2 +- src/wifi-agent.c | 2 +- src/wifi-key-encryption.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/util.c b/src/utils/util.c index 9e1b46a..e4dbc3f 100755 --- a/src/utils/util.c +++ b/src/utils/util.c @@ -1218,7 +1218,7 @@ gboolean handle_launch_mdns(Network *object, GDBusMethodInvocation *context, if (execute_mdnsd_script("start") < 0) { ERR("Failed to launch mdnsresponder daemon"); netconfig_error_invalid_parameter(context); - return FALSE; + return TRUE; } mdnsd_ref_count++; diff --git a/src/wifi-agent.c b/src/wifi-agent.c index 7169558..b8926d2 100755 --- a/src/wifi-agent.c +++ b/src/wifi-agent.c @@ -347,7 +347,7 @@ gboolean handle_request_input(NetConnmanAgent *connman_agent, g_return_val_if_fail(connman_agent != NULL, TRUE); if (NULL == service) - return FALSE; + return TRUE; DBG("Agent fields requested for service: %s", service); diff --git a/src/wifi-key-encryption.c b/src/wifi-key-encryption.c index e8a9f36..cf40a8a 100755 --- a/src/wifi-key-encryption.c +++ b/src/wifi-key-encryption.c @@ -308,7 +308,7 @@ gboolean handle_encrypt_passphrase(Wifi *wifi, GDBusMethodInvocation *context, c if ((wifi == NULL) || (passphrase == NULL)) { ERR("Invalid parameter"); netconfig_error_invalid_parameter(context); - return FALSE; + return TRUE; } enc_data = _netconfig_encrypt_passphrase(passphrase); -- 2.7.4