dbus: incorrect use of GetConnectionUnixProcessID method. 37/150237/1
authorINSUN PYO <insun.pyo@samsung.com>
Fri, 15 Sep 2017 01:55:08 +0000 (10:55 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Fri, 15 Sep 2017 01:57:05 +0000 (10:57 +0900)
dbus.c: get_dbus_method_sender_pid(169) > no message : [org.freedesktop.DBus.Error.InvalidArgs:Argument 0 is specified to be of type "int32", but is actually of type "uint32"

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ia1dbe36ae55cd3b24000f406e135d318d4163362

src/shared/dbus.c

index a9e0320..f9eab84 100644 (file)
@@ -163,7 +163,7 @@ int get_dbus_method_sender_pid(dbus_method_reply_handle_h reply_handle)
 
        dbus_error_init(&err);
 
-       ret = dbus_message_get_args(msg, &err, DBUS_TYPE_INT32, &pid, DBUS_TYPE_INVALID);
+       ret = dbus_message_get_args(msg, &err, DBUS_TYPE_UINT32, &pid, DBUS_TYPE_INVALID);
        dbus_message_unref(msg);
        if (dbus_error_is_set(&err)) {
                _E("no message : [%s:%s]", err.name, err.message);