From: Lennart Poettering Date: Fri, 9 Jul 2010 21:19:28 +0000 (+0200) Subject: socket: fix loading of .service files for .socket files X-Git-Tag: v3~71 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25366e094c749a613eb065829c424ef72c285e82;p=systemd socket: fix loading of .service files for .socket files --- diff --git a/src/socket.c b/src/socket.c index acd49a50..075b5196 100644 --- a/src/socket.c +++ b/src/socket.c @@ -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)