[nginx] Core: allocate enough memory to hold IPv6 text address p...
Ruslan Ermilov
ru at nginx.com
Sat Feb 22 08:09:29 UTC 2014
details: http://hg.nginx.org/nginx/rev/f47c844acbd4
branches:
changeset: 5583:f47c844acbd4
user: Ruslan Ermilov <ru at nginx.com>
date: Sat Feb 22 12:08:31 2014 +0400
description:
Core: allocate enough memory to hold IPv6 text address plus port.
diffstat:
src/core/ngx_connection.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 545a4d393e2f -r f47c844acbd4 src/core/ngx_connection.c
--- 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 @@ 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
More information about the nginx-devel
mailing list