From: Otto Moerbeek Date: Fri, 12 Jan 2024 09:40:37 +0000 (+0100) Subject: 1524930 COPY_INSTEAD_OF_MOVE X-Git-Tag: dnsdist-1.9.0-rc1~36^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4450ca8595da21fdf4da343c881597cd4ee8881;p=thirdparty%2Fpdns.git 1524930 COPY_INSTEAD_OF_MOVE --- diff --git a/pdns/recursordist/syncres.cc b/pdns/recursordist/syncres.cc index 1cfedbc7ce..171eb0a9e3 100644 --- a/pdns/recursordist/syncres.cc +++ b/pdns/recursordist/syncres.cc @@ -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 beenthere;