Welcome! Log In Create A New Profile

Advanced

[nginx] Core: allocate enough memory to hold IPv6 text address p...

Ruslan Ermilov
February 22, 2014 03:10AM
details: http://hg.nginx.org/nginx/rev/f47c844acbd4
branches:
changeset: 5583:f47c844acbd4
user: Ruslan Ermilov <ru@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


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Core: allocate enough memory to hold IPv6 text address p...

Ruslan Ermilov 780 February 22, 2014 03:10AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 173
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready