From: Miod Vallat Date: Fri, 17 Jan 2025 13:34:05 +0000 (+0100) Subject: Address coverity complaints in pdnsutil. X-Git-Tag: dnsdist-2.0.0-alpha1~151^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc4ea153b0331c319fefadd12187ba5732f52a0d;p=thirdparty%2Fpdns.git Address coverity complaints in pdnsutil. --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 0f0249747a..0d6beec0fb 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -527,7 +527,7 @@ static int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, con numerrors++; continue; } else - recordcontents.insert(contentstr); + recordcontents.insert(std::move(contentstr)); content.str(""); content< 0) { if(v4hintsAuto && arecords.find(trueTarget) == arecords.end()) { cout << "[warning] HTTPS record for "<< name << " has automatic IPv4 hints, but no A-record for the target at "<< trueTarget <<" exists."<replaceRRSet(di.id, change.first.first, QType(change.first.second), vrr); } @@ -3203,7 +3203,7 @@ static int secureZone(vector& cmds) DNSName zone(cmds.at(n)); dk.startTransaction(zone, -1); if(secureZone(dk, zone)) { - mustRectify.push_back(zone); + mustRectify.push_back(std::move(zone)); } else { zoneErrors++; }