]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: add forgotten return in error path
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 26 May 2020 14:07:30 +0000 (16:07 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 27 May 2020 07:02:53 +0000 (09:02 +0200)
If we get an error here, this is most likely oom, and we should not continue.

src/core/load-fragment.c

index 352798fd6ac08d19de4e50768f33471e95f50daf..6b97cf47976f363fb6f5a9d2a91d814466569a62 100644 (file)
@@ -4782,7 +4782,7 @@ int unit_load_fragment(Unit *u) {
                                      &u->manager->unit_name_map,
                                      &u->manager->unit_path_cache);
         if (r < 0)
-                log_error_errno(r, "Failed to rebuild name map: %m");
+                return log_error_errno(r, "Failed to rebuild name map: %m");
 
         r = unit_file_find_fragment(u->manager->unit_id_map,
                                     u->manager->unit_name_map,