summaryrefslogtreecommitdiffstats
path: root/bus/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/connection.c')
-rw-r--r--bus/connection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bus/connection.c b/bus/connection.c
index 3d83d96c..3c43200f 100644
--- a/bus/connection.c
+++ b/bus/connection.c
@@ -1030,11 +1030,14 @@ bus_transaction_send_error_reply (BusTransaction *transaction,
if (reply == NULL)
return FALSE;
- if (!bus_transaction_send_message (transaction, connection, reply))
+ if (!dbus_message_set_sender (reply, DBUS_SERVICE_DBUS) ||
+ !bus_transaction_send_message (transaction, connection, reply))
{
dbus_message_unref (reply);
return FALSE;
}
+ dbus_message_unref (reply);
+
return TRUE;
}