4 changed files with 57 additions and 71 deletions
@ -0,0 +1,13 @@
|
||||
## |
||||
## nsd.conf -- NSD configuration |
||||
## |
||||
|
||||
flags="-a 127.0.0.1 -p 53" |
||||
configdir="@l_prefix@/etc/nsd" |
||||
sbindir="@l_prefix@/sbin" |
||||
dbfile="@l_prefix@/var/nsd/nsd.db" |
||||
zonesfile="@l_prefix@/etc/nsd/nsd.zones" |
||||
keysdir="@l_prefix@/etc/nsd/keys" |
||||
notify="@l_prefix@/sbin/nsd-notify" |
||||
namedxfer="@l_prefix@/libexec/bind/named-xfer" |
||||
|
||||
@ -1,38 +0,0 @@
|
||||
--- nsd.c 17 Dec 2002 14:42:06 -0000 1.56.2.10
|
||||
+++ nsd.c 12 Feb 2003 09:19:50 -0000
|
||||
@@ -159,6 +159,7 @@
|
||||
signal(SIGINT, &sig_handler);
|
||||
signal(SIGILL, &sig_handler);
|
||||
signal(SIGALRM, &sig_handler);
|
||||
+ signal(SIGPIPE, SIG_IGN);
|
||||
|
||||
|
||||
/* Are we a tcp child? */
|
||||
@@ -566,6 +567,7 @@
|
||||
signal(SIGINT, &sig_handler);
|
||||
signal(SIGILL, &sig_handler);
|
||||
signal(SIGALRM, &sig_handler);
|
||||
+ signal(SIGPIPE, SIG_IGN);
|
||||
|
||||
/* Get our process id */
|
||||
nsd.pid[0] = getpid();
|
||||
diff -u -r1.83 query.c
|
||||
--- query.c 14 Oct 2002 13:12:16 -0000 1.83
|
||||
+++ query.c 18 Feb 2003 10:46:11 -0000
|
||||
@@ -145,11 +145,13 @@
|
||||
|
||||
/* Truncate */
|
||||
if(d && DOMAIN_FLAGS(d) & NAMEDB_DELEGATION) {
|
||||
- ANCOUNT(q) = NSCOUNT(q);
|
||||
+ ANCOUNT(q) = htons(ntohs(NSCOUNT(q)) + ntohs(ARCOUNT(q)));
|
||||
+ } else {
|
||||
+ q->iobufptr = qptr + ANSWER_RRS(a, ntohs(ANCOUNT(q)));
|
||||
}
|
||||
- NSCOUNT(q) = 0;
|
||||
+
|
||||
ARCOUNT(q) = 0;
|
||||
- q->iobufptr = qptr + ANSWER_RRS(a, ntohs(ANCOUNT(q)));
|
||||
+ NSCOUNT(q) = 0;
|
||||
|
||||
/* More data... */
|
||||
return 1;
|
||||
Loading…
Reference in new issue