mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Do not use the obsolete NGX_SOCKADDRLEN macro.
The change in ac120e797d28 re-used the macro which was made obsolete in adf25b8d0431.
This commit is contained in:
parent
05e87e19af
commit
0cda728c6f
@ -281,7 +281,7 @@ ngx_http_upstream_zone_copy_peer(ngx_http_upstream_rr_peers_t *peers,
|
|||||||
dst->server.data = NULL;
|
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) {
|
if (dst->sockaddr == NULL) {
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
@ -278,7 +278,7 @@ ngx_stream_upstream_zone_copy_peer(ngx_stream_upstream_rr_peers_t *peers,
|
|||||||
dst->server.data = NULL;
|
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) {
|
if (dst->sockaddr == NULL) {
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user