mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
set msg_namelen to the right size
This commit is contained in:
@@ -421,7 +421,7 @@ build_msghdr_recv(isc_socket_t *sock, isc_socketevent_t *dev,
|
|||||||
if (sock->type == isc_sockettype_udp) {
|
if (sock->type == isc_sockettype_udp) {
|
||||||
memset(&dev->address, 0, sizeof(dev->address));
|
memset(&dev->address, 0, sizeof(dev->address));
|
||||||
msg->msg_name = (void *)&dev->address.type.sa;
|
msg->msg_name = (void *)&dev->address.type.sa;
|
||||||
msg->msg_namelen = sizeof(dev->address.type.sa);
|
msg->msg_namelen = sizeof(dev->address.type);
|
||||||
#ifdef ISC_NET_RECVOVERFLOW
|
#ifdef ISC_NET_RECVOVERFLOW
|
||||||
/* If needed, steal one iovec for overflow detection. */
|
/* If needed, steal one iovec for overflow detection. */
|
||||||
maxiov--;
|
maxiov--;
|
||||||
|
Reference in New Issue
Block a user