diff --git a/bin/lwresd/client.h b/bin/lwresd/client.h index 278f96bb51..08486b048e 100644 --- a/bin/lwresd/client.h +++ b/bin/lwresd/client.h @@ -47,14 +47,13 @@ struct client_s { isc_boolean_t isidle; - dns_view_t *view; - ISC_LINK(client_t) link; }; struct clientmgr_s { isc_task_t *task; /* owning task */ isc_socket_t *sock; /* socket to use */ + dns_view_t *view; unsigned int flags; isc_event_t sdev; /* shutdown event */ ISC_LIST(client_t) idle; /* idle client slots */ diff --git a/bin/lwresd/main.c b/bin/lwresd/main.c index 6cdeb64f28..ec67c845af 100644 --- a/bin/lwresd/main.c +++ b/bin/lwresd/main.c @@ -264,6 +264,7 @@ main(int argc, char **argv) for (i = 0 ; i < NTASKS ; i++) { cmgr[i].task = NULL; cmgr[i].sock = sock; + cmgr[i].view = view; cmgr[i].flags = 0; ISC_EVENT_INIT(&cmgr[i].sdev, sizeof(isc_event_t), ISC_EVENTATTR_NOPURGE,