From ff4d391dc09aba9a3b09a7cbc3c2e6125b23e87f Mon Sep 17 00:00:00 2001 From: Neil Cook Date: Wed, 24 Oct 2018 12:35:57 +0000 Subject: [PATCH] Fix code-review issues: - Indentation (tabs vs spaces, grr) - Don't make NOD detection dependent on protobuf being enabled --- pdns/pdns_recursor.cc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 28fde0517..ca41f0a34 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -965,9 +965,9 @@ static bool udrCheckUniqueDNSRecord(const DNSName& dname, uint16_t qtype, const std::stringstream ss; ss << dname.toDNSStringLC() << ":" << qtype << ":" << qtype << ":" << record.d_type << ":" << record.d_name.toDNSStringLC() << ":" << record.d_content->getZoneRepresentation(); if (t_udrDBp && t_udrDBp->isUniqueResponse(ss.str())) { - if (g_udrLog) { - // This should also probably log to a dedicated file. - g_log<