From 0b75e80854bc5a343cbaa8c807925d45205f468a Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 16 Jan 2017 18:05:34 +0100 Subject: [PATCH] Explicitely use const iterators in `validateWithKeySet` and `getKeysFor` (cherry picked from commit 7a4f4632913046afde9e8acbbff1213b8faf982d) --- pdns/validate.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pdns/validate.cc b/pdns/validate.cc index 27f7114f88..fa209074a4 100644 --- a/pdns/validate.cc +++ b/pdns/validate.cc @@ -151,7 +151,7 @@ void validateWithKeySet(const cspmap_t& rrsets, cspmap_t& validated, const keyse cerr<<"\tTag: "< "<first.first)<<"/"<first.second)<<" with "<second.signatures.size()<<" sigs"<second.signatures) { vector > toSign = i->second.records; @@ -281,7 +281,7 @@ vState getKeysFor(DNSRecordOracle& dro, const DNSName& zone, keyset_t &keyset) LOG(" => "< sigs; vector > toSign; @@ -367,7 +367,7 @@ vState getKeysFor(DNSRecordOracle& dro, const DNSName& zone, keyset_t &keyset) // but not a fully validated DNSKEY set, yet // one of these valid DNSKEYs should be able to validate the // whole set - for(auto i=sigs.begin(); i!=sigs.end(); i++) + for(auto i=sigs.cbegin(); i!=sigs.cend(); i++) { // cerr<<"got sig for keytag "<d_tag<<" matching "<d_tag).size()<<" keys of which "<d_tag).size()<<" valid"<