2
0
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:
Michael Graff
1999-08-31 21:01:53 +00:00
parent 4c5faa6bcf
commit daf8c5c687

View File

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