2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

961. [bug] Tried to use a IPV6 feature when ISC_PLATFORM_HAVEIPV6

was not defined.  [RT #1482]
This commit is contained in:
Mark Andrews
2001-08-16 07:27:48 +00:00
parent a32e981584
commit 2c0b26955e
2 changed files with 6 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.206 2001/08/12 00:12:14 marka Exp $ */
/* $Id: socket.c,v 1.207 2001/08/16 07:27:48 marka Exp $ */
#include <config.h>
@@ -650,7 +650,7 @@ build_msghdr_send(isc_socket_t *sock, isc_socketevent_t *dev,
msg->msg_control = NULL;
msg->msg_controllen = 0;
msg->msg_flags = 0;
#ifdef USE_CMSG
#if defined(USE_CMSG) && defined(ISC_PLATFORM_HAVEIPV6)
if ((sock->type == isc_sockettype_udp)
&& ((dev->attributes & ISC_SOCKEVENTATTR_PKTINFO) != 0)) {
struct cmsghdr *cmsgp;
@@ -671,7 +671,7 @@ build_msghdr_send(isc_socket_t *sock, isc_socketevent_t *dev,
pktinfop = (struct in6_pktinfo *)CMSG_DATA(cmsgp);
memcpy(pktinfop, &dev->pktinfo, sizeof(struct in6_pktinfo));
}
#endif /* USE_CMSG */
#endif /* USE_CMSG && ISC_PLATFORM_HAVEIPV6 */
#else /* ISC_NET_BSD44MSGHDR */
msg->msg_accrights = NULL;
msg->msg_accrightslen = 0;