From: phk Date: Wed, 3 Sep 2008 13:03:22 +0000 (+0000) Subject: Use the correct buffer size for IPv6 addresses. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=056960c2c4b647f0125898f5201fc96389c9b562;p=varnish Use the correct buffer size for IPv6 addresses. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3160 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_vrt.c b/varnish-cache/bin/varnishd/cache_vrt.c index ef54f184..5fae2659 100644 --- a/varnish-cache/bin/varnishd/cache_vrt.c +++ b/varnish-cache/bin/varnishd/cache_vrt.c @@ -603,7 +603,7 @@ VRT_IP_string(const struct sess *sp, const struct sockaddr *sa) addr = &((const struct sockaddr_in *)sa)->sin_addr; break; case AF_INET6: - len = INET_ADDRSTRLEN; + len = INET6_ADDRSTRLEN; addr = &((const struct sockaddr_in6 *)sa)->sin6_addr; break; default: