chiark / gitweb /
bus: properly serialize unit file change list
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Nov 2013 19:18:59 +0000 (20:18 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Nov 2013 20:12:36 +0000 (21:12 +0100)
src/core/dbus-manager.c
src/libsystemd-bus/bus-util.c

index d7936ff..bc0c310 100644 (file)
@@ -1367,7 +1367,7 @@ static int reply_unit_file_changes_and_free(
 
         for (i = 0; i < n_changes; i++) {
                 r = sd_bus_message_append(
-                                message, "(sss)",
+                                reply, "(sss)",
                                 unit_file_change_type_to_string(changes[i].type),
                                 changes[i].path,
                                 changes[i].source);
@@ -1379,7 +1379,7 @@ static int reply_unit_file_changes_and_free(
         if (r < 0)
                 goto fail;
 
-        return sd_bus_send(bus, message, NULL);
+        return sd_bus_send(bus, reply, NULL);
 
 fail:
         unit_file_changes_free(changes, n_changes);
index 4d73df5..2140dbc 100644 (file)
@@ -1100,7 +1100,6 @@ int bus_maybe_reply_error(sd_bus_message *m, int r, sd_bus_error *error) {
         } else if (sd_bus_error_is_set(error)) {
                 if (m->header->type == SD_BUS_MESSAGE_METHOD_CALL)
                         sd_bus_reply_method_error(m, error);
-
         } else
                 return r;