]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
527. [bug] When a hint zone was configured, the spurious warning
authorAndreas Gustafsson <source@isc.org>
Sat, 4 Nov 2000 02:45:07 +0000 (02:45 +0000)
committerAndreas Gustafsson <source@isc.org>
Sat, 4 Nov 2000 02:45:07 +0000 (02:45 +0000)
                        messages "Hint zones do not have a forward field" and
                        "Hint zones do not have a forwarders field" were
                        printed. [RT #439]

CHANGES
lib/dns/config/confzone.c

diff --git a/CHANGES b/CHANGES
index 3a69533e7945ee20eb39d3d65b6fdc1ada02bd22..d9c18f4da9a79e59aa38db2b720ee12837ef5d96 100644 (file)
--- 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
index 65e3aa2ee509eed93ec0bb3f865b9ed188117cfa..633a1ddcd4a08c3476a29068a1fe7f822f323f71 100644 (file)
@@ -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 <config.h>
 
@@ -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);
 }