From 5c5c7aa73b14441bde2f6a251974b1c045b910b8 Mon Sep 17 00:00:00 2001 From: George Thessalonikefs Date: Tue, 4 Oct 2022 10:49:40 +0200 Subject: [PATCH] - Precheck access to target_fetch_policy. --- iterator/iterator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/iterator/iterator.c b/iterator/iterator.c index c03f7674f..c8709f855 100644 --- a/iterator/iterator.c +++ b/iterator/iterator.c @@ -2775,6 +2775,7 @@ processQueryTargets(struct module_qstate* qstate, struct iter_qstate* iq, * gone out to the network for a target query for this delegation, then * it is possible to slip in a promiscuous one with a 1/10 chance. */ if(can_do_promisc && tf_policy == 0 && iq->depth == 0 + && iq->depth < ie->max_dependency_depth && ie->target_fetch_policy[iq->depth] != 0 && iq->dp_target_count == 0 /* XXX && !ub_random_max(qstate->env->rnd, 10)*/) {