mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Fix a bug where a 0-length UDP packet was sent when the output queue was empty.
This commit is contained in:
@@ -1880,7 +1880,7 @@ isc_socket_sendto(isc_socket_t *sock, isc_region_t *region,
|
||||
goto queue;
|
||||
|
||||
iov.iov_base = (void *)(dev->region.base);
|
||||
iov.iov_len = dev->n;
|
||||
iov.iov_len = dev->region.length;
|
||||
|
||||
memset(&msghdr, 0, sizeof (msghdr));
|
||||
if (sock->type == isc_sockettype_udp) {
|
||||
|
Reference in New Issue
Block a user