mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
more bugs
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: check.c,v 1.2 2001/03/02 01:30:32 bwelling Exp $ */
|
||||
/* $Id: check.c,v 1.3 2001/03/02 03:09:27 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -197,7 +197,7 @@ cfg_check_namedconf(cfg_obj_t *config, isc_log_t *logctx) {
|
||||
cfg_obj_t *views = NULL;
|
||||
cfg_obj_t *obj;
|
||||
cfg_listelt_t *velement;
|
||||
isc_boolean_t result = ISC_R_SUCCESS;
|
||||
isc_result_t result = ISC_R_SUCCESS;
|
||||
|
||||
(void)cfg_map_get(config, "view", &views);
|
||||
|
||||
@@ -262,6 +262,7 @@ cfg_check_namedconf(cfg_obj_t *config, isc_log_t *logctx) {
|
||||
(void)cfg_map_get(config, "options", &options);
|
||||
|
||||
if (options != NULL) {
|
||||
obj = NULL;
|
||||
result = cfg_map_get(options, "cache-file", &obj);
|
||||
if (result == ISC_R_SUCCESS) {
|
||||
cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
|
||||
@@ -269,6 +270,7 @@ cfg_check_namedconf(cfg_obj_t *config, isc_log_t *logctx) {
|
||||
"option if views are present");
|
||||
result = ISC_R_FAILURE;
|
||||
}
|
||||
result = ISC_R_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user