From: Witold Kręcicki Date: Thu, 4 Oct 2018 14:32:28 +0000 (+0000) Subject: Use the newly accepted FD in TCP code. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0a1e4078e331fd0cebc1fdd3f14d8cdc784356e;p=thirdparty%2Fbind9.git Use the newly accepted FD in TCP code. --- diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index ea15d066c5d..2fb55d49e6e 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -3068,10 +3068,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]);