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