mirror of
https://github.com/neocturne/fastd.git
synced 2025-05-14 20:25:08 +02:00
Unset msg_control when no ancillary data is to be sent
This commit is contained in:
parent
e3877b1103
commit
1150b8a7bf
1 changed files with 3 additions and 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);
|
||||
|
|
Loading…
Add table
Reference in a new issue