Fix crash issue in vcd_dbus_server_is_system_command_valid 03/102103/2
authorsooyeon.kim <sooyeon.kim@samsung.com>
Mon, 5 Dec 2016 04:24:14 +0000 (13:24 +0900)
committerSooyeon Kim <sooyeon.kim@samsung.com>
Mon, 5 Dec 2016 06:57:11 +0000 (22:57 -0800)
Change-Id: I051aeaa8326fe6692e86f250bed8a9d0d83fbf37
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
server/vcd_dbus_server.c

index dafeadb..e263cdd 100644 (file)
@@ -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) {