From: W.C.A. Wijngaards Date: Mon, 22 Mar 2021 08:39:12 +0000 (+0100) Subject: - rpz-triggers, call rpz callback only if there are auth zones configured. X-Git-Tag: release-1.14.0rc1~62^2~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81cd0d76c8952f49fc6007e18f496c3eb273ff65;p=thirdparty%2Funbound.git - rpz-triggers, call rpz callback only if there are auth zones configured. --- diff --git a/iterator/iterator.c b/iterator/iterator.c index 63f8cbd56..f83170c16 100644 --- a/iterator/iterator.c +++ b/iterator/iterator.c @@ -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;