summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);