]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- rpz-triggers, call rpz callback only if there are auth zones configured.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 22 Mar 2021 08:39:12 +0000 (09:39 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 22 Mar 2021 08:39:12 +0000 (09:39 +0100)
iterator/iterator.c

index 63f8cbd563963f09fac58822845d0503069945be..f83170c16bd9470a58d3405ccb2c69cfb1e3b1bb 100644 (file)
@@ -2471,7 +2471,8 @@ processQueryTargets(struct module_qstate* qstate, struct iter_qstate* iq,
        /* Add the current set of unused targets to our queue. */
        delegpt_add_unused_targets(iq->dp);
 
-       { /* apply rpz triggers at query time */
+       if(qstate->env->auth_zones) {
+               /* apply rpz triggers at query time */
                struct dns_msg* forged_response = rpz_callback_from_iterator_module(qstate, iq);
                if(forged_response != NULL) {
                        qstate->ext_state[id] = module_finished;