]> granicus.if.org Git - pdns/commitdiff
Make a comparison easier to read
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 9 Mar 2017 16:52:14 +0000 (17:52 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 4 Apr 2017 15:10:43 +0000 (17:10 +0200)
pdns/syncres.cc

index 1367284c77a459bd639b0e90a4cd8e4f97ba54a5..2eb4c0b6e8390f49ea5dd8a92a02f843ac58ae42 100644 (file)
@@ -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!
           set<GetBestNSAnswer>beenthere;
           res=doResolve(std::dynamic_pointer_cast<CNAMERecordContent>(j->d_content)->getTarget(), qtype, ret, depth+1, beenthere);
         }