mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-16 07:03:00 -04:00
set msg_namelen to the right size
This commit is contained in:
parent
78854e02c1
commit
176323fd5e
1 changed files with 1 additions and 1 deletions
|
|
@ -421,7 +421,7 @@ build_msghdr_recv(isc_socket_t *sock, isc_socketevent_t *dev,
|
|||
if (sock->type == isc_sockettype_udp) {
|
||||
memset(&dev->address, 0, sizeof(dev->address));
|
||||
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
|
||||
/* If needed, steal one iovec for overflow detection. */
|
||||
maxiov--;
|
||||
|
|
|
|||
Loading…
Reference in a new issue