From: Andreas Gustafsson Date: Sat, 4 Nov 2000 02:45:07 +0000 (+0000) Subject: 527. [bug] When a hint zone was configured, the spurious warning X-Git-Tag: v9.0.1rc2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77b8c0255bf9178f2e614a63492917a36c0c829c;p=thirdparty%2Fbind9.git 527. [bug] When a hint zone was configured, the spurious warning messages "Hint zones do not have a forward field" and "Hint zones do not have a forwarders field" were printed. [RT #439] --- diff --git a/CHANGES b/CHANGES index 3a69533e794..d9c18f4da9a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,9 @@ + 527. [bug] When a hint zone was configured, the spurious warning + messages "Hint zones do not have a forward field" and + "Hint zones do not have a forwarders field" were + printed. [RT #439] + --- 9.0.1rc1 released --- 526. [bug] nsupdate incorrectly refused to add RRs with a TTL diff --git a/lib/dns/config/confzone.c b/lib/dns/config/confzone.c index 65e3aa2ee50..633a1ddcd4a 100644 --- a/lib/dns/config/confzone.c +++ b/lib/dns/config/confzone.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: confzone.c,v 1.47.2.3 2000/10/18 19:10:27 gson Exp $ */ +/* $Id: confzone.c,v 1.47.2.4 2000/11/04 02:45:07 gson Exp $ */ #include @@ -638,15 +638,17 @@ dns_c_zone_validate(dns_c_zone_t *zone) } } - if (dns_c_zone_getforward(zone, &tmpfwd) == ISC_R_SUCCESS) - isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG, - DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING, - forwarderr, zone->name); + if (zone->ztype != dns_c_zone_hint) { + if (dns_c_zone_getforward(zone, &tmpfwd) == ISC_R_SUCCESS) + isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG, + DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING, + forwarderr, zone->name); - if (dns_c_zone_getforwarders(zone, &iplist) == ISC_R_SUCCESS) - isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG, - DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING, - forwarderserr, zone->name); + if (dns_c_zone_getforwarders(zone, &iplist) == ISC_R_SUCCESS) + isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG, + DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING, + forwarderserr, zone->name); + } return (result); }