summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_controller.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_controller.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_controller.c')
-rw-r--r--src/nxt_controller.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c
index 7305b3d5..e41452a3 100644
--- a/src/nxt_controller.c
+++ b/src/nxt_controller.c
@@ -281,11 +281,10 @@ nxt_runtime_controller_socket(nxt_task_t *task, nxt_runtime_t *rt)
}
ls->sockaddr->type = sa->type;
- ls->socklen = sa->socklen;
- ls->address_length = sa->length;
-
nxt_sockaddr_text(ls->sockaddr);
+ nxt_listen_socket_remote_size(ls, sa);
+
ls->socket = -1;
ls->backlog = NXT_LISTEN_BACKLOG;
ls->read_after_accept = 1;