summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-09-14 18:16:22 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-09-14 18:16:22 +0300
commit4d5e39e8c1fdad50937fd440ca7a8df43a97e078 (patch)
treec35b4e2f26d65e38728d33deef920771767b6b5d /src/nxt_router.c
parentf3280c5dc94e5415970fbbe8d1f03721b85f5553 (diff)
downloadunit-4d5e39e8c1fdad50937fd440ca7a8df43a97e078.tar.gz
unit-4d5e39e8c1fdad50937fd440ca7a8df43a97e078.tar.bz2
Fixed textual socket name lengths and Unix domain sockaddr length.
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;