Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2014-02-22 12:08:31 +0400
committerRuslan Ermilov <ru@nginx.com>2014-02-22 12:08:31 +0400
commit8aa8365121ace17f02a9acf714aa4ed6467deddd (patch)
treef2824e4ef227d724704a20ee79a8b62a568800cb /src/core/ngx_connection.c
parent9ae40c5b5455d717d91dcd620e29da49bbedf644 (diff)
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.c2
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