From 1150b8a7bf3dbeaa766fccac946ce831e187c6b2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 7 Aug 2013 05:38:54 +0200 Subject: Unset msg_control when no ancillary data is to be sent --- src/send.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3