chiark / gitweb /
Use bus_maybe_send_reply() where applicable
[elogind.git] / src / hostname / hostnamed.c
index 979dcfdc7f42442a2f9c485a3e1123eedd8e5794..25e154b224870f1e54feb531a20e869fe7f9c3d8 100644 (file)
@@ -605,7 +605,7 @@ static DBusHandlerResult hostname_message_handler(
         if (!reply)
                 goto oom;
 
         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);
                 goto oom;
 
         dbus_message_unref(reply);