mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Revert "Re-created rt27597a for ongoing DLZ work"
This reverts commit d731ee9121
.
This commit is contained in:
@@ -1280,7 +1280,6 @@ check_zoneconf(const cfg_obj_t *zconfig, const cfg_obj_t *voptions,
|
||||
isc_buffer_t b;
|
||||
isc_boolean_t root = ISC_FALSE;
|
||||
const cfg_listelt_t *element;
|
||||
isc_boolean_t dlz;
|
||||
|
||||
static optionstable options[] = {
|
||||
{ "allow-query", MASTERZONE | SLAVEZONE | STUBZONE | REDIRECTZONE |
|
||||
@@ -1702,24 +1701,11 @@ check_zoneconf(const cfg_obj_t *zconfig, const cfg_obj_t *voptions,
|
||||
* require file clauses.
|
||||
*/
|
||||
obj = NULL;
|
||||
dlz = ISC_FALSE;
|
||||
tresult = cfg_map_get(zoptions, "dlz", &obj);
|
||||
if (tresult == ISC_R_SUCCESS)
|
||||
dlz = ISC_TRUE;
|
||||
|
||||
obj = NULL;
|
||||
tresult = cfg_map_get(zoptions, "database", &obj);
|
||||
if (dlz && tresult == ISC_R_SUCCESS) {
|
||||
cfg_obj_log(zconfig, logctx, ISC_LOG_ERROR,
|
||||
"zone '%s': cannot specify both 'dlz' "
|
||||
"and 'database'", znamestr);
|
||||
result = ISC_R_FAILURE;
|
||||
} else if (!dlz &&
|
||||
(tresult == ISC_R_NOTFOUND ||
|
||||
if (tresult == ISC_R_NOTFOUND ||
|
||||
(tresult == ISC_R_SUCCESS &&
|
||||
(strcmp("rbt", cfg_obj_asstring(obj)) == 0 ||
|
||||
strcmp("rbt64", cfg_obj_asstring(obj)) == 0))))
|
||||
{
|
||||
strcmp("rbt64", cfg_obj_asstring(obj)) == 0))) {
|
||||
obj = NULL;
|
||||
tresult = cfg_map_get(zoptions, "file", &obj);
|
||||
if (tresult != ISC_R_SUCCESS &&
|
||||
|
Reference in New Issue
Block a user