summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_controller.c
diff options
context:
space:
mode:
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;