Mercurial > hg > nginx
comparison src/stream/ngx_stream_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 |
comparison
equal
deleted
inserted
replaced
7109:4a670c18e5e6 | 7110:3b1b81e248bc |
---|---|
276 dst->sockaddr = NULL; | 276 dst->sockaddr = NULL; |
277 dst->name.data = NULL; | 277 dst->name.data = NULL; |
278 dst->server.data = NULL; | 278 dst->server.data = NULL; |
279 } | 279 } |
280 | 280 |
281 dst->sockaddr = ngx_slab_calloc_locked(pool, NGX_SOCKADDRLEN); | 281 dst->sockaddr = ngx_slab_calloc_locked(pool, sizeof(ngx_sockaddr_t)); |
282 if (dst->sockaddr == NULL) { | 282 if (dst->sockaddr == NULL) { |
283 goto failed; | 283 goto failed; |
284 } | 284 } |
285 | 285 |
286 dst->name.data = ngx_slab_calloc_locked(pool, NGX_SOCKADDR_STRLEN); | 286 dst->name.data = ngx_slab_calloc_locked(pool, NGX_SOCKADDR_STRLEN); |