From c5466de712cb03f92809c7ad828f795e41e0ca62 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 5 Jun 2009 19:44:20 +0000 Subject: IPV6 fixes, and new version --- srcx/jstart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'srcx') diff --git a/srcx/jstart.c b/srcx/jstart.c index 353c579..ca9319d 100644 --- a/srcx/jstart.c +++ b/srcx/jstart.c @@ -124,7 +124,7 @@ static void add_addresses(struct jail *j, struct addrinfo *all) memcpy(j->ip4 + j->ip4s, &((struct sockaddr_in*)res->ai_addr)->sin_addr, sizeof (*(j->ip4))); ++j->ip4s; break; -#ifdef INET6 +#ifdef HAVE_INET6 case AF_INET6: j->ip6 = realloc(j->ip6, sizeof (*(j->ip6)) * (j->ip6s + 1)); if(j->ip6 == NULL) @@ -132,7 +132,7 @@ static void add_addresses(struct jail *j, struct addrinfo *all) memcpy(j->ip6 + j->ip6s, &((struct sockaddr_in6*)res->ai_addr)->sin6_addr, sizeof (*(j->ip6))); ++j->ip6s; break; -#endif /* INET6 */ +#endif /* HAVE_INET6 */ default: errx(1, "Address family %d not supported", res->ai_family); } -- cgit v1.2.3