From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> If message passed to g_dbus_send_message is a signal verify if it is a valid and there really exists an interface with respective signal name. --- gdbus/object.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gdbus/object.c b/gdbus/object.c index d864bf5..565dd6f 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -1514,6 +1514,15 @@ gboolean g_dbus_send_message(DBusConnection *connection, DBusMessage *message) if (dbus_message_get_type(message) == DBUS_MESSAGE_TYPE_METHOD_CALL) dbus_message_set_no_reply(message, TRUE); + else if (dbus_message_get_type(message) == DBUS_MESSAGE_TYPE_SIGNAL) { + const char *path = dbus_message_get_path(message); + const char *interface = dbus_message_get_interface(message); + const char *name = dbus_message_get_member(message); + const GDBusArgInfo *args; + + if (!check_signal(connection, path, interface, name, &args)) + return FALSE; + } result = dbus_connection_send(connection, message, NULL); -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html