mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-28 12:40:47 +00:00
Fix bug which gave zero-length DHCPv6 packets if sendto() is interrupted.
This commit is contained in:
2 files changed
+4
-1
No files matched your search
+1
-1
@@ -245,7 +245,7 @@ void dhcp6_packet(time_t now)
|
||||
{
|
||||
from.sin6_port = htons(port);
|
||||
while (retry_send(sendto(daemon->dhcp6fd, daemon->outpacket.iov_base,
|
||||
save_counter(0), 0, (struct sockaddr *)&from,
|
||||
save_counter(-1), 0, (struct sockaddr *)&from,
|
||||
sizeof(from))));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user