mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
1164. [bug] Empty masters clauses in slave / stub zones were not
handled gracefully. [RT #2262]
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
|||||||
|
1164. [bug] Empty masters clauses in slave / stub zones were not
|
||||||
|
handled gracefully. [RT #2262]
|
||||||
|
|
||||||
1163. [func] isc_time_formattimestamp() now includes the year.
|
1163. [func] isc_time_formattimestamp() now includes the year.
|
||||||
|
|
||||||
1162. [bug] The allow-notify option was not accepted in slave
|
1162. [bug] The allow-notify option was not accepted in slave
|
||||||
|
@@ -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/12/13 06:20:40 bwelling Exp $ */
|
/* $Id: check.c,v 1.12 2001/12/17 22:56:58 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -120,6 +120,7 @@ check_zoneconf(cfg_obj_t *zconfig, isc_symtab_t *symtab,
|
|||||||
unsigned int ztype;
|
unsigned int ztype;
|
||||||
cfg_obj_t *zoptions;
|
cfg_obj_t *zoptions;
|
||||||
cfg_obj_t *obj = NULL;
|
cfg_obj_t *obj = NULL;
|
||||||
|
cfg_obj_t *addrlist = NULL;
|
||||||
isc_symvalue_t symvalue;
|
isc_symvalue_t symvalue;
|
||||||
isc_result_t result = ISC_R_SUCCESS;
|
isc_result_t result = ISC_R_SUCCESS;
|
||||||
isc_result_t tresult;
|
isc_result_t tresult;
|
||||||
@@ -263,6 +264,13 @@ check_zoneconf(cfg_obj_t *zconfig, isc_symtab_t *symtab,
|
|||||||
zname);
|
zname);
|
||||||
result = ISC_R_FAILURE;
|
result = ISC_R_FAILURE;
|
||||||
}
|
}
|
||||||
|
addrlist = cfg_tuple_get(obj, "addresses");
|
||||||
|
if (cfg_list_first(addrlist) == NULL) {
|
||||||
|
cfg_obj_log(zoptions, logctx, ISC_LOG_ERROR,
|
||||||
|
"zone '%s': empty 'masters' entry",
|
||||||
|
zname);
|
||||||
|
result = ISC_R_FAILURE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user