From e55fd2c6706e41f6933e1656ac3da7527ee2514f Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 2 Apr 2003 20:14:52 +0000 Subject: 2003-04-02 Havoc Pennington * bus/connection.c (bus_transaction_send_error_reply): set sender service for the error, and unref the reply on success * bus/activation.c: convert to use BusTransaction so OOM can be handled correctly (bus_activation_service_created): set sender of the message --- bus/connection.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bus/connection.c') 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; } -- cgit