From 992b1b2aeecf50351b4378f0ac6346cb0ba3e103 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Tue, 8 Aug 2000 00:44:21 +0000 Subject: [PATCH] rephrased a comment; added an INSIST --- bin/named/server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/named/server.c b/bin/named/server.c index e5aa984db6..d5696de927 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: server.c,v 1.211 2000/08/02 20:55:40 tale Exp $ */ +/* $Id: server.c,v 1.212 2000/08/08 00:44:21 gson Exp $ */ #include @@ -834,7 +834,7 @@ create_version_zone(dns_c_ctx_t *cctx, dns_zonemgr_t *zmgr, dns_view_t *view) /* * Create the special view that handles queries for * "authors.bind. CH". The strings returned list - * the authors of bind. + * the BIND 9 authors. */ static isc_result_t create_authors_zone(dns_zonemgr_t *zmgr, dns_view_t *view) { @@ -885,6 +885,7 @@ create_authors_zone(dns_zonemgr_t *zmgr, dns_view_t *view) { for (i = 0; authors[i] != NULL; i++) { cr.base = authors[i]; cr.length = strlen(authors[i]); + INSIST(cr.length == cr.base[0] + 1); dns_rdata_fromregion(&rdata, dns_rdataclass_ch, dns_rdatatype_txt, (isc_region_t *)&cr); tuple = NULL;