diff options
author | Stef Walter <stef@memberwebs.com> | 2009-06-05 19:44:20 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-06-05 19:44:20 +0000 |
commit | c5466de712cb03f92809c7ad828f795e41e0ca62 (patch) | |
tree | 66e6ff6fb5a125cf264da45ece1215484f8d3363 /srcx | |
parent | 1e602f2fc10f638fb4a39cf765d89ae89c49ea9a (diff) |
IPV6 fixes, and new version
Diffstat (limited to 'srcx')
-rw-r--r-- | srcx/jstart.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |