socket: fix loading of .service files for .socket files

This commit is contained in:
Lennart Poettering 2010-07-09 23:19:28 +02:00
parent a821caaae1
commit 25366e094c
1 changed files with 1 additions and 1 deletions

View 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)