]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
1524930 COPY_INSTEAD_OF_MOVE
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 12 Jan 2024 09:40:37 +0000 (10:40 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 12 Jan 2024 09:40:37 +0000 (10:40 +0100)
pdns/recursordist/syncres.cc

index 1cfedbc7ce89b2fe8fd97b07a4e555e9a139014c..171eb0a9e397d6619f64db828c5d5035a77763f4 100644 (file)
@@ -2671,12 +2671,12 @@ bool SyncRes::doCNAMECacheCheck(const DNSName& qname, const QType qtype, vector<
       if (CNAMELoop) {
         string msg = "got a CNAME referral (from cache) that causes a loop";
         LOG(prefix << qname << ": Status=" << msg << endl);
-        throw ImmediateServFailException(msg);
+        throw ImmediateServFailException(std::move(msg));
       }
       if (numCNAMEs > s_max_CNAMES_followed) {
         string msg = "max number of CNAMEs exceeded";
         LOG(prefix << qname << ": Status=" << msg << endl);
-        throw ImmediateServFailException(msg);
+        throw ImmediateServFailException(std::move(msg));
       }
 
       set<GetBestNSAnswer> beenthere;