From: Lennart Poettering Date: Wed, 27 Jan 2010 03:55:42 +0000 (+0100) Subject: don't choke if there are no sockets for a service X-Git-Tag: 0.git+20100605+dfd8ee-1~402 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b78d0be16db0e28371dd4045b502e28db9d6c78f;p=systemd don't choke if there are no sockets for a service --- diff --git a/service.c b/service.c index fce42045..cef94175 100644 --- a/service.c +++ b/service.c @@ -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;