Mercurial > hg > nginx
diff src/http/modules/ngx_http_upstream_zone_module.c @ 7110:3b1b81e248bc
Do not use the obsolete NGX_SOCKADDRLEN macro.
The change in ac120e797d28 re-used the macro which was made obsolete
in adf25b8d0431.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 22 Sep 2017 13:10:49 +0300 |
parents | ac120e797d28 |
children |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_upstream_zone_module.c +++ b/src/http/modules/ngx_http_upstream_zone_module.c @@ -281,7 +281,7 @@ ngx_http_upstream_zone_copy_peer(ngx_htt dst->server.data = NULL; } - dst->sockaddr = ngx_slab_calloc_locked(pool, NGX_SOCKADDRLEN); + dst->sockaddr = ngx_slab_calloc_locked(pool, sizeof(ngx_sockaddr_t)); if (dst->sockaddr == NULL) { goto failed; }