]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: TCP counterpart to protobufServer(.. {taggedOnly=true}) fix
authorTomasz Pala <gotar@polanet.pl>
Sat, 4 Jan 2025 02:55:20 +0000 (03:55 +0100)
committerTomasz Pala <gotar@polanet.pl>
Sat, 4 Jan 2025 02:55:20 +0000 (03:55 +0100)
pdns/recursordist/rec-tcp.cc

index eeb4b59983316e32172a83f628447870122ae4fd..e2d417e724e44c5efa5a605263281921c66846ae 100644 (file)
@@ -461,7 +461,7 @@ static void doProcessTCPQuestion(std::unique_ptr<DNSComboWriter>& comboWriter, s
         t_Counters.at(rec::Histogram::cumulativeAnswers)(spentUsec);
         comboWriter->d_eventTrace.add(RecEventTrace::AnswerSent);
 
-        if (t_protobufServers.servers && comboWriter->d_logResponse && (!luaconfsLocal->protobufExportConfig.taggedOnly || !pbData || pbData->d_tagged)) {
+        if (t_protobufServers.servers && comboWriter->d_logResponse && (!luaconfsLocal->protobufExportConfig.taggedOnly || (pbData && pbData->d_tagged))) {
           struct timeval tval
           {
             0, 0