Skip to content

Commit d115ed6

Browse files
committed
fix for bug #153 crash part.
git-svn-id: file:///svn/nsd/trunk@2503 a26ef69c-88ff-0310-839f-98b793d9c207
1 parent f05105f commit d115ed6

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

doc/ChangeLog

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
16 November 2006: Wouter
2+
- Bug #153: now checks for FD_SETSIZE when adding fd to select fdset.
3+
14
15 November 2006: Wouter
25
- Fixed bug #152: identity keyword in nsd.conf did not work.
36
What happened was that the hostname() from the computer

netio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ netio_dispatch(netio_type *netio, const struct timespec *timeout, const sigset_t
153153

154154
for (elt = netio->handlers; elt; elt = elt->next) {
155155
netio_handler_type *handler = elt->handler;
156-
if (handler->fd >= 0) {
156+
if (handler->fd >= 0 && handler->fd < FD_SETSIZE) {
157157
if (handler->fd > max_fd) {
158158
max_fd = handler->fd;
159159
}

tpkg/bug153_socketlimit.tpkg

1.68 KB
Binary file not shown.

tpkg/bugzilla-bugs

+1
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,4 @@ T 141 "NSD does not clear flags on formerr"
8181
T 144 "Defaults in LOC records not RFC 1876 compliant"
8282
T 145 "NSD doesn't support multiple AXFR simultaneously" in long dir.
8383
T 152 "identity keyword in nsd.conf does not function properly"
84+
T 153 "Crash when using 10000 secondary zones"

0 commit comments

Comments
 (0)