Unset msg_control when no ancillary data is to be sent

This commit is contained in:
Matthias Schiffer 2013-08-07 05:38:54 +02:00
parent e3877b1103
commit 1150b8a7bf

View file

@ -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);