diff --git a/pdns/recursordist/rec-tcp.cc b/pdns/recursordist/rec-tcp.cc index eeb4b5998331..e2d417e724e4 100644 --- a/pdns/recursordist/rec-tcp.cc +++ b/pdns/recursordist/rec-tcp.cc @@ -461,7 +461,7 @@ static void doProcessTCPQuestion(std::unique_ptr& 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