From 26c4f7c44ca739fe4a9446677b532e5b56b35806 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 24 Jul 2025 07:25:13 +0200 Subject: [PATCH] Use unmodified flag for post policy --- pdns/recursordist/syncres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/syncres.cc b/pdns/recursordist/syncres.cc index 9981f7c0f..127a3fbf0 100644 --- a/pdns/recursordist/syncres.cc +++ b/pdns/recursordist/syncres.cc @@ -1913,7 +1913,7 @@ int SyncRes::doResolveNoQNameMinimization(const DNSName& qname, const QType qtyp } /* Apply Post filtering policies */ - if (d_wantsRPZ && !stoppedByPolicyHit) { + if (d_wantsRPZ && !d_appliedPolicy.wasHit()) { auto luaLocal = g_luaconfs.getLocal(); if (luaLocal->dfe.getPostPolicy(ret, d_discardedPolicies, d_appliedPolicy)) { mergePolicyTags(d_policyTags, d_appliedPolicy.getTags()); -- 2.47.2