summaryrefslogtreecommitdiff
path: root/src/basic/socket-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-10 16:50:21 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-10 16:50:21 +0100
commit059adb5ac035fec290ca3a9f2dc08a19b20b4d67 (patch)
treede2291d03ba2397bb72b34c65a4fe3deec54da2f /src/basic/socket-util.c
parent16a798deb3b560f8b27848fe292a76b362c0b581 (diff)
parenta7c723c0c00a1b8ee64fe360a5d3caf2c89cb25c (diff)
Merge pull request #2555 from poettering/coredump-fixes
Coredump fixes and more
Diffstat (limited to 'src/basic/socket-util.c')
-rw-r--r--src/basic/socket-util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c
index 7a866f2e23..49e5f5b125 100644
--- a/src/basic/socket-util.c
+++ b/src/basic/socket-util.c
@@ -871,14 +871,13 @@ int send_one_fd_sa(
struct cmsghdr cmsghdr;
uint8_t buf[CMSG_SPACE(sizeof(int))];
} control = {};
- struct cmsghdr *cmsg;
-
struct msghdr mh = {
.msg_name = (struct sockaddr*) sa,
.msg_namelen = len,
.msg_control = &control,
.msg_controllen = sizeof(control),
};
+ struct cmsghdr *cmsg;
assert(transport_fd >= 0);
assert(fd >= 0);