summaryrefslogtreecommitdiff
path: root/src/core/socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-05-11 20:13:37 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-11 22:18:21 +0200
commit6f856a0992aee3fb06cb13a761b902657ff228ea (patch)
treec6688722787469f15951f555d92e4a794221cf22 /src/core/socket.c
parentd3650f0c4b04990c5b9e8a3463de309ec165fcf5 (diff)
downloadsystemd-6f856a0992aee3fb06cb13a761b902657ff228ea.tar.gz
core: always initialize ExecParamters.bus_endpoint_fd to -1
Otherwise it might be passed in as 0, which is a valid fd, but usually does not refer to a real endpoint.
Diffstat (limited to 'src/core/socket.c')
-rw-r--r--src/core/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/socket.c b/src/core/socket.c
index 55334e4a54..3fb3b362e1 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -1398,6 +1398,7 @@ static int socket_spawn(Socket *s, ExecCommand *c, pid_t *_pid) {
.apply_permissions = true,
.apply_chroot = true,
.apply_tty_stdin = true,
+ .bus_endpoint_fd = -1,
};
assert(s);