Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yswang0927 authored Jul 20, 2024
1 parent 21c3b8c commit 8e62a6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ngx_http_upstream_check_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1223,8 +1223,9 @@ ngx_http_upstream_check_add_dynamic_peer_shm(ngx_pool_t *pool,
ngx_memzero(&peer_shm[index], sizeof(ngx_http_upstream_check_peer_shm_t));

peer_shm[index].socklen = peer_addr->socklen;
/* yswang merge: https://github.com/alibaba/tengine/pull/1508 */
peer_shm[index].sockaddr = ngx_slab_alloc_locked(shpool,
peer_shm->socklen);
peer_addr->socklen);
if (peer_shm[index].sockaddr == NULL) {
goto fail;
}
Expand Down

0 comments on commit 8e62a6d

Please sign in to comment.