]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3653. [func] Create delegations for all "children" of empty zones
authorMark Andrews <marka@isc.org>
Tue, 24 Sep 2013 23:40:21 +0000 (09:40 +1000)
committerMark Andrews <marka@isc.org>
Tue, 24 Sep 2013 23:40:21 +0000 (09:40 +1000)
                        except "forward first". [RT #34826]

CHANGES
bin/named/server.c

diff --git a/CHANGES b/CHANGES
index f3844adb47bf1e614d5dcb21417e3d345215cc54..47f2a2b13e51c7ea9d3c20f0c6d7b3dc949863b5 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3653.  [func]          Create delegations for all "children" of empty zones
+                       except "forward first". [RT #34826]
+
 3652.  [bug]           Address bug with rpz-drop policy. [RT #34816]
 
 3651.  [tuning]        Adjust when a master server is deemed unreachable.
index d8748345fccbb19d9f0a045f1b71e58d357ddd02..29c8a9f884c326fc2eb7f228aab342641fccb94b 100644 (file)
@@ -2143,15 +2143,14 @@ create_empty_zone(dns_zone_t *zone, dns_name_t *name, dns_view_t *view,
                obj = NULL;
                (void)cfg_map_get(zoptions, "type", &obj);
                INSIST(obj != NULL);
-               if (strcasecmp(cfg_obj_asstring(obj), "forward") != 0)
-                       continue;
-
-               obj = NULL;
-               (void)cfg_map_get(zoptions, "forward", &obj);
-               if (obj == NULL)
-                       continue;
-               if (strcasecmp(cfg_obj_asstring(obj), "only") != 0)
-                       continue;
+               if (strcasecmp(cfg_obj_asstring(obj), "forward") == 0) {
+                       obj = NULL;
+                       (void)cfg_map_get(zoptions, "forward", &obj);
+                       if (obj == NULL)
+                               continue;
+                       if (strcasecmp(cfg_obj_asstring(obj), "only") != 0)
+                               continue;
+               }
                if (db == NULL) {
                        CHECK(dns_db_create(view->mctx, "rbt", name,
                                            dns_dbtype_zone, view->rdclass,