Skip to content

Commit

Permalink
clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
omoerbeek committed Jan 20, 2025
1 parent e29f989 commit 7f9a6a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pdns/dnspacket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ bool DNSPacket::couldBeCached() const

unsigned int DNSPacket::getMinTTL()
{
auto it = std::min_element(d_rrs.begin(), d_rrs.end());
if (it != d_rrs.end()) {
return it->dr.d_ttl;
auto iter = std::min_element(d_rrs.begin(), d_rrs.end());
if (iter != d_rrs.end()) {
return iter->dr.d_ttl;
}
return UINT_MAX;
}
Expand Down

0 comments on commit 7f9a6a9

Please sign in to comment.