mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
914. [bug] Gobal 'server' statements were rejected when
using views, even though they were accepted in 9.1. [RT #1368]
This commit is contained in:
parent
389677e152
commit
7d8c3693d0
5
CHANGES
5
CHANGES
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
914. [bug] Gobal 'server' statements were rejected when
|
||||||
|
using views, even though they were accepted
|
||||||
|
in 9.1. [RT #1368]
|
||||||
|
|
||||||
913. [bug] More max-cache-size tuning.
|
913. [bug] More max-cache-size tuning.
|
||||||
|
|
||||||
912. [bug] Attempts to set the 'additional-from-cache' or
|
912. [bug] Attempts to set the 'additional-from-cache' or
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: check.c,v 1.11 2001/06/04 21:51:27 bwelling Exp $ */
|
/* $Id: check.c,v 1.12 2001/06/28 21:58:54 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@ -413,7 +413,6 @@ cfg_check_namedconf(cfg_obj_t *config, isc_log_t *logctx, isc_mem_t *mctx) {
|
|||||||
result = ISC_R_FAILURE;
|
result = ISC_R_FAILURE;
|
||||||
} else {
|
} else {
|
||||||
cfg_obj_t *zones = NULL;
|
cfg_obj_t *zones = NULL;
|
||||||
cfg_obj_t *peers = NULL;
|
|
||||||
|
|
||||||
(void)cfg_map_get(config, "zone", &zones);
|
(void)cfg_map_get(config, "zone", &zones);
|
||||||
if (zones != NULL) {
|
if (zones != NULL) {
|
||||||
@ -422,14 +421,6 @@ cfg_check_namedconf(cfg_obj_t *config, isc_log_t *logctx, isc_mem_t *mctx) {
|
|||||||
"all zones must be in views");
|
"all zones must be in views");
|
||||||
result = ISC_R_FAILURE;
|
result = ISC_R_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
(void)cfg_map_get(config, "server", &peers);
|
|
||||||
if (peers != NULL) {
|
|
||||||
cfg_obj_log(peers, logctx, ISC_LOG_ERROR,
|
|
||||||
"when using 'view' statements, "
|
|
||||||
"all server statements must be in views");
|
|
||||||
result = ISC_R_FAILURE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (velement = cfg_list_first(views);
|
for (velement = cfg_list_first(views);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user