mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 19:41:35 +00:00
Core: allocate enough memory to hold IPv6 text address plus port.
This commit is contained in:
parent
9ae40c5b54
commit
8aa8365121
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue