]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
recursor: fix protobufServer(.. {taggedOnly=true}) logic for
authorTomasz Pala <gotar@polanet.pl>
Fri, 3 Jan 2025 23:44:55 +0000 (00:44 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 24 Jul 2025 10:23:52 +0000 (12:23 +0200)
cache-returned responses (problem existing since initial ac10822)
fixes #15007

(cherry picked from commit 647162c4cb641d9368ddf9f992a351c1cacf222a)

pdns/recursordist/pdns_recursor.cc

index eb887cf7bfe8a11bd8b581da74e5338042946db8..62bdac7e0ea1f899cf2288df49408409c0e8c3c6 100644 (file)
@@ -2347,7 +2347,7 @@ static string* doProcessUDPQuestion(const std::string& question, const ComboAddr
         int sendErr = sendOnNBSocket(fileDesc, &msgh);
         eventTrace.add(RecEventTrace::AnswerSent);
 
-        if (t_protobufServers.servers && logResponse && (!luaconfsLocal->protobufExportConfig.taggedOnly || !pbData || pbData->d_tagged)) {
+        if (t_protobufServers.servers && logResponse && (!luaconfsLocal->protobufExportConfig.taggedOnly || (pbData && pbData->d_tagged))) {
           protobufLogResponse(dnsheader, luaconfsLocal, pbData, tval, false, source, destination, mappedSource, ednssubnet, uniqueId, requestorId, deviceId, deviceName, meta, eventTrace, policyTags);
         }