From 8aa8365121ace17f02a9acf714aa4ed6467deddd Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Sat, 22 Feb 2014 12:08:31 +0400 Subject: [PATCH] Core: allocate enough memory to hold IPv6 text address plus port. --- src/core/ngx_connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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