}
}
- obj = NULL;
- (void)cfg_map_get(options, "max-query-restarts", &obj);
- if (obj != NULL) {
- uint32_t restarts = cfg_obj_asuint32(obj);
- if (restarts == 0 || restarts > 255) {
- cfg_obj_log(obj, ISC_LOG_ERROR,
- "'max-query-restarts' is out of "
- "range 1..255)");
- if (result == ISC_R_SUCCESS) {
- result = ISC_R_RANGE;
- }
- }
- }
+ check_range_uint32(options, &result, "max-query-restarts", 1, 255);
obj = NULL;
(void)cfg_map_get(options, "prefetch", &obj);