summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-07 05:38:54 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-07 05:39:50 +0200
commit1150b8a7bf3dbeaa766fccac946ce831e187c6b2 (patch)
tree386b79a0c57359e59b1feb2725a512a920bf4d7e /src
parente3877b11034409b49d7ba42e861bf61fb0c73a06 (diff)
downloadfastd-1150b8a7bf3dbeaa766fccac946ce831e187c6b2.tar
fastd-1150b8a7bf3dbeaa766fccac946ce831e187c6b2.zip
Unset msg_control when no ancillary data is to be sent
Diffstat (limited to 'src')
-rw-r--r--src/send.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/send.c b/src/send.c
index 2868d4d..8707e31 100644
--- a/src/send.c
+++ b/src/send.c
@@ -98,6 +98,9 @@ static void send_type(fastd_context_t *ctx, const fastd_socket_t *sock, const fa
add_pktinfo(&msg, local_addr);
+ if (!msg.msg_controllen)
+ msg.msg_control = NULL;
+
int ret;
do {
ret = sendmsg(sock->fd, &msg, 0);