mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +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;
|
goto queue;
|
||||||
|
|
||||||
iov.iov_base = (void *)(dev->region.base);
|
iov.iov_base = (void *)(dev->region.base);
|
||||||
iov.iov_len = dev->n;
|
iov.iov_len = dev->region.length;
|
||||||
|
|
||||||
memset(&msghdr, 0, sizeof (msghdr));
|
memset(&msghdr, 0, sizeof (msghdr));
|
||||||
if (sock->type == isc_sockettype_udp) {
|
if (sock->type == isc_sockettype_udp) {
|
||||||
|
Reference in New Issue
Block a user