/* Check endpoints are valid */
tresult = cfg_map_get(http, "endpoints", &eps);
if (tresult == ISC_R_SUCCESS) {
+ bool empty = true;
CFG_LIST_FOREACH(eps, elt) {
const cfg_obj_t *ep = cfg_listelt_value(elt);
const char *path = cfg_obj_asstring(ep);
+ empty = false;
if (!isc_nm_http_path_isvalid(path)) {
cfg_obj_log(eps, ISC_LOG_ERROR,
"endpoint '%s' is not a "
}
}
}
+ if (empty) {
+ cfg_obj_log(eps, ISC_LOG_ERROR,
+ "empty 'endpoints' entry");
+ if (result == ISC_R_SUCCESS) {
+ result = ISC_R_FAILURE;
+ }
+ }
}
return result;