2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Use the newly accepted FD in TCP code.

This commit is contained in:
Witold Kręcicki
2018-10-04 14:32:28 +00:00
parent 88edf8fe4d
commit d652551e86

View 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]);