]> 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)
committerTomasz Pala <gotar@polanet.pl>
Fri, 3 Jan 2025 23:44:55 +0000 (00:44 +0100)
cache-returned responses (problem existing since initial ac10822)
fixes #15007

pdns/recursordist/pdns_recursor.cc

index 8ea9286171303b6d61ad327f33e40ac8187a4e3e..8f022abb8c45d851e24427d143be84f142171186 100644 (file)
@@ -2338,7 +2338,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);
         }