diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-27 04:55:42 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-27 04:55:42 +0100 |
commit | b78d0be16db0e28371dd4045b502e28db9d6c78f (patch) | |
tree | 5ea24e6d151d2c58d2851a6a7014e198b98950e5 /service.c | |
parent | b952f2e17587167867f3564e06a6548dbd5c3d5a (diff) |
don't choke if there are no sockets for a service
Diffstat (limited to 'service.c')
-rw-r--r-- | service.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |