summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libsystemd/sd-daemon/sd-daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd/sd-daemon/sd-daemon.c b/src/libsystemd/sd-daemon/sd-daemon.c
index 0412ece2ca..f9c11d3b73 100644
--- a/src/libsystemd/sd-daemon/sd-daemon.c
+++ b/src/libsystemd/sd-daemon/sd-daemon.c
@@ -402,6 +402,7 @@ _public_ int sd_pid_notify_with_fds(pid_t pid, int unset_environment, const char
CMSG_SPACE(sizeof(struct ucred) * have_pid);
msghdr.msg_control = alloca(msghdr.msg_controllen);
+ cmsg = CMSG_FIRSTHDR(&msghdr);
if (n_fds > 0) {
cmsg->cmsg_level = SOL_SOCKET;
cmsg->cmsg_type = SCM_RIGHTS;