Use max-query-restarts in iterative resolver

This commit is contained in:
Christian Allred
2021-04-05 16:25:43 -07:00
parent 0e3068559c
commit 07c0d04a14
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1237,7 +1237,7 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq,
/* We enforce a maximum number of query restarts. This is primarily a
* cheap way to prevent CNAME loops. */
if(iq->query_restart_count > MAX_RESTART_COUNT) {
if(iq->query_restart_count > ie->max_query_restarts) {
verbose(VERB_QUERY, "request has exceeded the maximum number"
" of query restarts with %d", iq->query_restart_count);
errinf(qstate, "request has exceeded the maximum number "