From 81cd0d76c8952f49fc6007e18f496c3eb273ff65 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Mon, 22 Mar 2021 09:39:12 +0100 Subject: [PATCH] - rpz-triggers, call rpz callback only if there are auth zones configured. --- iterator/iterator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.47.3