From 211fa9d3965a2c84bf4536b94f42674bc1dc4803 Mon Sep 17 00:00:00 2001 From: "sooyeon.kim" Date: Mon, 5 Dec 2016 13:24:14 +0900 Subject: [PATCH] Fix crash issue in vcd_dbus_server_is_system_command_valid Change-Id: I051aeaa8326fe6692e86f250bed8a9d0d83fbf37 Signed-off-by: sooyeon.kim --- server/vcd_dbus_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/vcd_dbus_server.c b/server/vcd_dbus_server.c index dafeadb..e263cdd 100644 --- a/server/vcd_dbus_server.c +++ b/server/vcd_dbus_server.c @@ -1329,7 +1329,7 @@ int vcd_dbus_server_is_system_command_valid(DBusConnection* conn, DBusMessage* m dbus_error_free(&err); } else { SLOG(LOG_DEBUG, TAG_VCD, "[IN] vcd dialog : pid(%d)", pid); - vcd_server_is_system_command_valid(pid, &is_sys_cmd_valid); + ret = vcd_server_is_system_command_valid(pid, &is_sys_cmd_valid); } DBusMessage* reply; @@ -1338,7 +1338,7 @@ int vcd_dbus_server_is_system_command_valid(DBusConnection* conn, DBusMessage* m if (NULL != reply) { dbus_message_append_args(reply, DBUS_TYPE_INT32, &ret, - DBUS_TYPE_STRING, &is_sys_cmd_valid, + DBUS_TYPE_INT32, &is_sys_cmd_valid, DBUS_TYPE_INVALID); if (0 == ret) { -- 2.7.4