chiark / gitweb /
Use bus_maybe_send_reply() where applicable
[elogind.git] / src / hostname / hostnamed.c
index 979dcfd..25e154b 100644 (file)
@@ -605,7 +605,7 @@ static DBusHandlerResult hostname_message_handler(
         if (!reply)
                 goto oom;
 
-        if (!dbus_connection_send(connection, reply, NULL))
+        if (!bus_maybe_send_reply(connection, message, reply))
                 goto oom;
 
         dbus_message_unref(reply);