don't choke if there are no sockets for a service

This commit is contained in:
Lennart Poettering 2010-01-27 04:55:42 +01:00
parent b952f2e175
commit b78d0be16d
1 changed files with 3 additions and 0 deletions

View File

@ -285,6 +285,9 @@ static int service_collect_fds(Service *s, int **fds, unsigned *n_fds) {
p = manager_get_unit(UNIT(s)->meta.manager, k);
free(k);
if (!p)
continue;
if ((r = socket_collect_fds(SOCKET(p), &cfds, &cn_fds)) < 0)
goto fail;