summaryrefslogtreecommitdiffstats
path: root/dns/nsd/files/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'dns/nsd/files/patch-ab')
-rw-r--r--dns/nsd/files/patch-ab20
1 files changed, 20 insertions, 0 deletions
diff --git a/dns/nsd/files/patch-ab b/dns/nsd/files/patch-ab
new file mode 100644
index 0000000..12b595e
--- /dev/null
+++ b/dns/nsd/files/patch-ab
@@ -0,0 +1,20 @@
+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;
OpenPOWER on IntegriCloud