]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2167. [bug] When re-using a automatic zone named failed to
authorMark Andrews <marka@isc.org>
Tue, 24 Apr 2007 06:55:32 +0000 (06:55 +0000)
committerMark Andrews <marka@isc.org>
Tue, 24 Apr 2007 06:55:32 +0000 (06:55 +0000)
                        attach it to the new view. [RT #16786]

CHANGES
bin/named/server.c

diff --git a/CHANGES b/CHANGES
index 7619ca1c1b4d20ce49809ef3ca395b8dd5b5e80e..251d00791ed20fc1697c33213c99b1812fc9e596 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+2167.  [bug]           When re-using a automatic zone named failed to
+                       attach it to the new view. [RT #16786]
 
        --- 9.5.0a3 released ---
 
index 931d0ab76ddfd9f16aae07b5cf1d2ba52e82cd7d..22a8d465ff41f8c08bbc7f452a75f7a648b55177 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: server.c,v 1.482 2007/04/02 23:46:47 marka Exp $ */
+/* $Id: server.c,v 1.483 2007/04/24 06:55:32 marka Exp $ */
 
 /*! \file */
 
@@ -1870,6 +1870,7 @@ configure_view(dns_view_t *view, const cfg_obj_t *config,
                                                     empty_dbtype, mctx);
                                if (zone != NULL) {
                                        dns_zone_setview(zone, view);
+                                       CHECK(dns_view_addzone(view, zone));
                                        dns_zone_detach(&zone);
                                        continue;
                                }