Core: allocate enough memory to hold IPv6 text address plus port.

This commit is contained in:
Ruslan Ermilov 2014-02-22 12:08:31 +04:00
parent 9ae40c5b54
commit 8aa8365121

View File

@ -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