* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: named-checkconf.c,v 1.26 2002/07/11 04:50:34 marka Exp $ */
+/* $Id: named-checkconf.c,v 1.27 2002/10/10 13:22:00 jinmei Exp $ */
#include <config.h>
cfg_obj_t *voptions;
cfg_obj_t *zonelist;
isc_result_t result = ISC_R_SUCCESS;
+ isc_result_t tresult;
voptions = NULL;
if (vconfig != NULL)
element = cfg_list_next(element))
{
cfg_obj_t *zconfig = cfg_listelt_value(element);
- CHECK(configure_zone(vclass, view, zconfig, mctx));
+ tresult = configure_zone(vclass, view, zconfig, mctx);
+ if (tresult != ISC_R_SUCCESS)
+ result = tresult;
}
- cleanup:
return (result);
}
cfg_obj_t *vconfig;
const char *vclass;
isc_result_t result = ISC_R_SUCCESS;
+ isc_result_t tresult;
views = NULL;
vclass = cfg_obj_asstring(classobj);
}
vname = cfg_obj_asstring(cfg_tuple_get(vconfig, "name"));
- CHECK(configure_view(vclass, vname, config, vconfig, mctx));
+ tresult = configure_view(vclass, vname, config, vconfig, mctx);
+ if (tresult != ISC_R_SUCCESS)
+ result = tresult;
}
- if (views == NULL)
- CHECK(configure_view("IN", "_default", config, NULL, mctx));
- cleanup:
+ if (views == NULL) {
+ tresult = configure_view("IN", "_default", config, NULL, mctx);
+ if (tresult != ISC_R_SUCCESS)
+ result = tresult;
+ }
return (result);
}