diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-07 05:38:54 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-07 05:39:50 +0200 |
commit | 1150b8a7bf3dbeaa766fccac946ce831e187c6b2 (patch) | |
tree | 386b79a0c57359e59b1feb2725a512a920bf4d7e /src/send.c | |
parent | e3877b11034409b49d7ba42e861bf61fb0c73a06 (diff) | |
download | fastd-1150b8a7bf3dbeaa766fccac946ce831e187c6b2.tar fastd-1150b8a7bf3dbeaa766fccac946ce831e187c6b2.zip |
Unset msg_control when no ancillary data is to be sent
Diffstat (limited to 'src/send.c')
-rw-r--r-- | src/send.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |