]> err.no Git - varnish/commitdiff
Use the correct buffer size for IPv6 addresses.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 3 Sep 2008 13:03:22 +0000 (13:03 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 3 Sep 2008 13:03:22 +0000 (13:03 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3160 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_vrt.c

index ef54f1844b03df18a7b6100619903027850934b3..5fae2659a211ea008b4aea8e9eebc94c54dbb632 100644 (file)
@@ -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: