From: Pieter Lexis Date: Thu, 9 Mar 2017 16:52:14 +0000 (+0100) Subject: Make a comparison easier to read X-Git-Tag: rec-4.1.0-alpha1~174^2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8e7daf84d1296b169d49577cfe2c562364f69f0;p=pdns Make a comparison easier to read --- 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); }