From f8e7daf84d1296b169d49577cfe2c562364f69f0 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 9 Mar 2017 17:52:14 +0100 Subject: [PATCH] Make a comparison easier to read --- pdns/syncres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 1367284c7..2eb4c0b6e 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -740,7 +740,7 @@ bool SyncRes::doCNAMECacheCheck(const DNSName &qname, const QType &qtype, vector ret.push_back(sigdr); } - if(!(qtype==QType(QType::CNAME))) { // perhaps they really wanted a CNAME! + if(qtype != QType::CNAME) { // perhaps they really wanted a CNAME! setbeenthere; res=doResolve(std::dynamic_pointer_cast(j->d_content)->getTarget(), qtype, ret, depth+1, beenthere); } -- 2.40.0