diff --git a/src/core/dbus.c b/src/core/dbus.c index 9cb198a13a5..ec1c0d43369 100644 --- a/src/core/dbus.c +++ b/src/core/dbus.c @@ -1180,7 +1180,7 @@ int bus_track_deserialize_item(char ***l, const char *line) { e = startswith(line, "subscribed="); if (!e) - return 0; + return -EINVAL; return strv_extend(l, e); } diff --git a/src/core/manager.c b/src/core/manager.c index 2bc10584369..7abc8a9a5e4 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -2408,7 +2408,7 @@ int manager_deserialize(Manager *m, FILE *f, FDSet *fds) { m->kdbus_fd = fdset_remove(fds, fd); } - } else if (bus_track_deserialize_item(&m->deserialized_subscribed, l) == 0) + } else if (bus_track_deserialize_item(&m->deserialized_subscribed, l) < 0) log_warning("Unknown serialization item '%s'", l); }