From 056960c2c4b647f0125898f5201fc96389c9b562 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 3 Sep 2008 13:03:22 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_vrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5