diff options
author | Havoc Pennington <hp@redhat.com> | 2003-04-02 20:14:52 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-04-02 20:14:52 +0000 |
commit | e55fd2c6706e41f6933e1656ac3da7527ee2514f (patch) | |
tree | 36329f8a7da856381c7538d01cb138e2db81be47 /bus/connection.c | |
parent | cfa261b49dd9cafb172deae3db22dba0c2e54bf9 (diff) | |
download | dbus-e55fd2c6706e41f6933e1656ac3da7527ee2514f.tar.gz |
2003-04-02 Havoc Pennington <hp@redhat.com>
* 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
Diffstat (limited to 'bus/connection.c')
-rw-r--r-- | bus/connection.c | 5 |
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; } |