Blob Blame History Raw
diff -r -u nsd-2.3.3.orig/zonec.c nsd-2.3.3/zonec.c
--- nsd-2.3.3.orig/zonec.c	2005-10-11 09:08:41.000000000 -0400
+++ nsd-2.3.3/zonec.c	2005-12-13 03:26:57.000000000 -0500
@@ -1231,12 +1231,17 @@
 	/* Check consistency of rrtype descriptor table.  */
 	{
 		int i;
-		for (i = 0; i < RRTYPE_DESCRIPTORS_LENGTH; ++i) {
+		for (i = 0; i < TYPE_DNSKEY; ++i) {
 			if (i != rrtype_descriptors[i].type) {
 				fprintf(stderr, "error: type descriptor entry '%d' does not match type '%d', fix the definition in dns.c\n", i, rrtype_descriptors[i].type);
 				abort();
 			}
 		}
+		/* and then we have a bunch of zeros and the SPF record */
+		if (rrtype_descriptors[TYPE_SPF].type != TYPE_SPF) {
+			fprintf(stderr, "error: type descriptor entry '%d' does not match type '%d', fix the definition in dns.c\n", i, rrtype_descriptors[i].type);
+		abort();
+		}
 	}
 #endif