]> err.no Git - systemd/commitdiff
socket: fix loading of .service files for .socket files
authorLennart Poettering <lennart@poettering.net>
Fri, 9 Jul 2010 21:19:28 +0000 (23:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 9 Jul 2010 21:43:16 +0000 (23:43 +0200)
src/socket.c

index acd49a50457cdb49ba06b278922a56243026a40a..075b51966f81b948c404a83b250791f97853b0a9 100644 (file)
@@ -268,7 +268,7 @@ static int socket_load(Unit *u) {
         if (u->meta.load_state == UNIT_LOADED) {
 
                 if (have_non_accept_socket(s)) {
-                        if ((r = unit_load_related_unit(u, ".service", (Unit**) &s->service)))
+                        if ((r = unit_load_related_unit(u, ".service", (Unit**) &s->service)) < 0)
                                 return r;
 
                         if ((r = unit_add_dependency(u, UNIT_BEFORE, UNIT(s->service), true)) < 0)