]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use unmodified flag for post policy
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 24 Jul 2025 05:25:13 +0000 (07:25 +0200)
committerGitHub <noreply@github.com>
Thu, 24 Jul 2025 05:25:13 +0000 (07:25 +0200)
pdns/recursordist/syncres.cc

index 9981f7c0f85daea246331d9bee402d5024c424d6..127a3fbf0f06670fb054cbc22b3271303836cb38 100644 (file)
@@ -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());