mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +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->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;
|
||||
}
|
||||
|
@ -278,7 +278,7 @@ ngx_stream_upstream_zone_copy_peer(ngx_stream_upstream_rr_peers_t *peers,
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user