File: bug390.patch

package info (click to toggle)
nsd 4.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,260 kB
  • sloc: ansic: 64,435; sh: 4,351; python: 2,085; yacc: 1,344; makefile: 688
file content (15 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: nsec3.c
===================================================================
--- nsec3.c	(revision 3889)
+++ nsec3.c	(working copy)
@@ -820,6 +820,10 @@
 	if(!query->zone->nsec3_param)
 		return;
 	nsec3_add_nonexist_proof(query, answer, wildcard, qname);
+	if(wildcard->parent && wildcard->parent->nsec3 &&
+		wildcard->parent->nsec3->nsec3_is_exact)
+		nsec3_add_rrset(query, answer, AUTHORITY_SECTION,
+			wildcard->parent->nsec3->nsec3_cover);
 }
 
 static void