changeset 5583:f47c844acbd4

Core: allocate enough memory to hold IPv6 text address plus port.
author Ruslan Ermilov <ru@nginx.com>
date Sat, 22 Feb 2014 12:08:31 +0400
parents 545a4d393e2f
children 0251f2f1dc93
files src/core/ngx_connection.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/ngx_connection.c
+++ b/src/core/ngx_connection.c
@@ -129,7 +129,7 @@ ngx_set_inherited_sockets(ngx_cycle_t *c
 #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