From fc4ea153b0331c319fefadd12187ba5732f52a0d Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 17 Jan 2025 14:34:05 +0100 Subject: [PATCH] Address coverity complaints in pdnsutil. --- pdns/pdnsutil.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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++; } -- 2.47.2