Skip to content

Commit

Permalink
Merge pull request #15057 from omoerbeek/rec-coverity-20250120
Browse files Browse the repository at this point in the history
rec: Coverity issues missed in last round, all severity "Low"
  • Loading branch information
omoerbeek authored Jan 20, 2025
2 parents f7822a3 + d48a1b8 commit ad4c52c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pdns/recursordist/rec-zonetocache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void ZoneData::parseDRForCache(DNSRecord& dnsRecord)
const auto sigkey = pair(key.first, rrsig->d_type);
auto found = d_sigs.find(sigkey);
if (found != d_sigs.end()) {
found->second.push_back(rrsig);
found->second.push_back(std::move(rrsig));
}
else {
vector<shared_ptr<const RRSIGRecordContent>> sigsrr;
Expand Down
4 changes: 2 additions & 2 deletions pdns/recursordist/syncres.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ int SyncRes::AuthDomain::getRecords(const DNSName& qname, const QType qtype, std
for (ziter = range.first; ziter != range.second; ++ziter) {
DNSRecord dnsRecord = *ziter;
dnsRecord.d_place = DNSResourceRecord::AUTHORITY;
records.push_back(dnsRecord);
records.push_back(std::move(dnsRecord));
}
}

Expand Down Expand Up @@ -3105,7 +3105,7 @@ bool SyncRes::doCacheCheck(const DNSName& qname, const DNSName& authname, bool w
for (const auto& rec : *authorityRecs) {
DNSRecord dnsRecord(rec);
dnsRecord.d_ttl = ttl;
ret.push_back(dnsRecord);
ret.push_back(std::move(dnsRecord));
}

LOG(endl);
Expand Down

0 comments on commit ad4c52c

Please sign in to comment.