From: Ruslan Ermilov Date: Sat, 22 Feb 2014 08:08:31 +0000 (+0400) Subject: Core: allocate enough memory to hold IPv6 text address plus port. X-Git-Tag: release-1.5.11~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=8aa8365121ace17f02a9acf714aa4ed6467deddd;p=nginx.git Core: allocate enough memory to hold IPv6 text address plus port. --- diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c index 845b9161a..6b6e3b3a5 100644 --- a/src/core/ngx_connection.c +++ b/src/core/ngx_connection.c @@ -129,7 +129,7 @@ ngx_set_inherited_sockets(ngx_cycle_t *cycle) #if (NGX_HAVE_INET6) case AF_INET6: ls[i].addr_text_max_len = NGX_INET6_ADDRSTRLEN; - len = NGX_INET6_ADDRSTRLEN + sizeof(":65535") - 1; + len = NGX_INET6_ADDRSTRLEN + sizeof("[]:65535") - 1; break; #endif