From: Mark Andrews Date: Tue, 24 Sep 2013 23:40:21 +0000 (+1000) Subject: 3653. [func] Create delegations for all "children" of empty zones X-Git-Tag: v9.10.0a1~80 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=00043fc284892099b309be37340ae80893146c69;p=thirdparty%2Fbind9.git 3653. [func] Create delegations for all "children" of empty zones except "forward first". [RT #34826] --- diff --git a/CHANGES b/CHANGES index f3844adb47b..47f2a2b13e5 100644 --- 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. diff --git a/bin/named/server.c b/bin/named/server.c index d8748345fcc..29c8a9f884c 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -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,