2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

4359. [bug] Inherited 'also-notify' lists were not being checked

by named-checkconf. [RT #42174]
This commit is contained in:
Mark Andrews
2016-05-05 21:59:09 +10:00
parent 374dacca76
commit 594d15df25
6 changed files with 41 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
4359. [bug] Inherited 'also-notify' lists were not being checked
by named-checkconf. [RT #42174]
4358. [test] Added American Fuzzy Lop harness that allows
feeding fuzzed packets into BIND.
[RT #41723]

View File

@@ -0,0 +1,8 @@
options {
also-notify { missing; };
};
zone "example.net" {
type slave;
masters { 192.168.1.1; };
};

View File

@@ -0,0 +1,7 @@
view example {
also-notify { missing; };
zone "example.net" {
type slave;
masters { 192.168.1.1; };
};
};

View File

@@ -0,0 +1,9 @@
options {
also-notify { missing; };
};
zone "example.net" {
type slave;
notify no;
masters { 192.168.1.1; };
};

View File

@@ -0,0 +1,8 @@
view example {
also-notify { missing; };
zone "example.net" {
type slave;
notify no;
masters { 192.168.1.1; };
};
};

View File

@@ -1780,7 +1780,12 @@ check_zoneconf(const cfg_obj_t *zconfig, const cfg_obj_t *voptions,
cfg_obj_log(zoptions, logctx, ISC_LOG_WARNING,
"zone '%s': 'also-notify' set but "
"'notify' is disabled", znamestr);
} else if (tresult == ISC_R_SUCCESS) {
}
if (tresult != ISC_R_SUCCESS && voptions != NULL)
tresult = cfg_map_get(voptions, "also-notify", &obj);
if (tresult != ISC_R_SUCCESS && goptions != NULL)
tresult = cfg_map_get(goptions, "also-notify", &obj);
if (tresult == ISC_R_SUCCESS && donotify) {
isc_uint32_t count;
tresult = validate_masters(obj, config, &count,
logctx, mctx);