]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Update pdns/syncres.cc
authorRemi Gacogne <rgacogne@users.noreply.github.com>
Fri, 8 Mar 2019 12:59:03 +0000 (13:59 +0100)
committerGitHub <noreply@github.com>
Fri, 8 Mar 2019 12:59:03 +0000 (13:59 +0100)
Co-Authored-By: pieterlexis <pieterlexis@users.noreply.github.com>
pdns/syncres.cc

index db3dd5512b4662ad6ee37caa079916a57e859c48..e7002c20f7a0476681a78b76694e831b2a8999dc 100644 (file)
@@ -1043,7 +1043,7 @@ bool SyncRes::doCNAMECacheCheck(const DNSName &qname, const QType &qtype, vector
           if (dnameRR == nullptr) {
             throw ImmediateServFailException("Unable to get record content for "+foundName.toLogString()+"|DNAME cache entry");
           }
-          auto dnameSuffix = dnameRR->getTarget();
+          const auto& dnameSuffix = dnameRR->getTarget();
           DNSName targetPrefix = qname.makeRelative(foundName);
           try {
             dr.d_type = QType::CNAME;