diff options
author | Ruslan Ermilov <ru@nginx.com> | 2014-02-22 12:08:31 +0400 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2014-02-22 12:08:31 +0400 |
commit | 8aa8365121ace17f02a9acf714aa4ed6467deddd (patch) | |
tree | f2824e4ef227d724704a20ee79a8b62a568800cb /src/core/ngx_connection.c | |
parent | 9ae40c5b5455d717d91dcd620e29da49bbedf644 (diff) | |
download | nginx-8aa8365121ace17f02a9acf714aa4ed6467deddd.tar.gz nginx-8aa8365121ace17f02a9acf714aa4ed6467deddd.zip |
Core: allocate enough memory to hold IPv6 text address plus port.
Diffstat (limited to 'src/core/ngx_connection.c')
-rw-r--r-- | src/core/ngx_connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |