File: bug390.patch

package info (click to toggle)
nsd 4.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,776 kB
  • ctags: 4,853
  • sloc: ansic: 34,446; python: 2,085; yacc: 1,774; sh: 925; makefile: 453
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