summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r--src/nxt_router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index d62c536f..1a18ffa3 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -943,8 +943,8 @@ nxt_router_socket_conf(nxt_task_t *task, nxt_mp_t *mp, nxt_sockaddr_t *sa)
skcf->sockaddr = sa;
skcf->listen.sockaddr = sa;
- skcf->listen.socklen = sa->socklen;
- skcf->listen.address_length = sa->length;
+
+ nxt_listen_socket_remote_size(&skcf->listen, sa);
skcf->listen.socket = -1;
skcf->listen.backlog = NXT_LISTEN_BACKLOG;