]> 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>
Tue, 6 Nov 2018 11:25:09 +0000 (11:25 +0000)
lib/isc/unix/socket.c

index ea15d066c5d1c41b2077f92f45cd62468dda3694..2fb55d49e6e5d3a06c40f03500ad44d17e2f98db 100644 (file)
@@ -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]);