From: Remi Gacogne Date: Fri, 6 Nov 2020 10:56:58 +0000 (+0100) Subject: rec: Fix the processing of answers generated from gettag X-Git-Tag: dnsdist-1.6.0-alpha0~32^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=995884ff35d9591857edd6aef0df07e892c19485;p=thirdparty%2Fpdns.git rec: Fix the processing of answers generated from gettag The logic to let a RPZ match override the answers generated from Lua was broken, ignoring the generated values. --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index a9c0c812a9..f552d569ad 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1574,7 +1574,7 @@ static void startDoResolve(void *p) } } - if (policyOverride) { + if (!policyOverride) { /* No RPZ or gettag overrides it anyway */ ret = std::move(dc->d_records); res = *dc->d_rcode;