]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use the newly accepted FD in TCP code.
authorWitold Kręcicki <wpk@isc.org>
Thu, 4 Oct 2018 14:32:28 +0000 (14:32 +0000)
committerWitold Kręcicki <wpk@isc.org>
Thu, 15 Nov 2018 08:21:17 +0000 (08:21 +0000)
lib/isc/unix/socket.c

index 6257d0367f70587f0fe801a95e5add38ed87eb20..0cc8c3a8c231f9cb6fc3d7d52692a2bd0adc5c26 100644 (file)
@@ -3072,10 +3072,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]);