mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-25 08:02:54 -05:00
- Precheck access to target_fetch_policy.
This commit is contained in:
parent
46a61d9881
commit
5c5c7aa73b
1 changed files with 1 additions and 0 deletions
|
|
@ -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)*/) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue