bk: 3e41dd7cQiAQi1JAsX1ziAgrDd1mcQ
#include <isc/lang.h>
#include <isc/net.h>
#include <isc/types.h>
+#include "ntp_rfc2553.h"
+
+
ISC_LANG_BEGINDECLS
#ifdef SYS_WINNT
#define in6_addr in_addr6
#else
+/*
+ * Don't include any additional IPv6 definitions
+ * We are defining our own here.
+ */
+#define ISC_IPV6_H 1
+
struct in6_addr {
union {
u_int8_t __u6_addr8[16];
ai->ai_addr->sa_len = sizeof(struct sockaddr);
#endif
if (hints != NULL && hints->ai_flags & AI_CANONNAME) {
- ai->ai_canonname = malloc(strlen(hp->h_name));
+ ai->ai_canonname = malloc(strlen(hp->h_name) + 1);
if (ai->ai_canonname == NULL)
return (EAI_MEMORY);
strcpy(ai->ai_canonname, hp->h_name);