diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index 1c7cf29190..f963b0cf66 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -3067,10 +3067,10 @@ internal_accept(isc__socket_t *sock) { } LOCK(&nthread->fdlock[lockid]); - thread->fds[fd] = NEWCONNSOCK(dev); - thread->fdstate[fd] = MANAGED; + nthread->fds[fd] = NEWCONNSOCK(dev); + nthread->fdstate[fd] = MANAGED; #if defined(USE_EPOLL) - thread->epoll_events[fd] = 0; + nthread->epoll_events[fd] = 0; #endif UNLOCK(&nthread->fdlock[lockid]);