Mercurial > hg > nginx
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 Thu Feb 20 17:27:09 2014 +0400 +++ b/src/core/ngx_connection.c Sat Feb 22 12:08:31 2014 +0400 @@ -129,7 +129,7 @@ #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