From: Otto Date: Mon, 8 Feb 2021 08:31:20 +0000 (+0100) Subject: some d_* locals X-Git-Tag: dnsdist-1.6.0-alpha2~51^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10070%2Fhead;p=thirdparty%2Fpdns.git some d_* locals --- diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index 51f8c7c40b..d1707aa990 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -164,10 +164,10 @@ vector DNSPacket::getAnswerRecords() { vector arrs; - for(auto & d_rr : d_rrs) + for(auto & rr : d_rrs) { - if(d_rr.dr.d_place!=DNSResourceRecord::ADDITIONAL) - arrs.push_back(&d_rr); + if(rr.dr.d_place!=DNSResourceRecord::ADDITIONAL) + arrs.push_back(&rr); } return arrs; } @@ -524,12 +524,12 @@ try if(edo.d_extFlags & EDNSOpts::DNSSECOK) d_dnssecOk=true; - for(const auto & d_option : edo.d_options) { - if(d_option.first == EDNSOptionCode::NSID) { + for(const auto & option : edo.d_options) { + if(option.first == EDNSOptionCode::NSID) { d_wantsnsid=true; } - else if(s_doEDNSSubnetProcessing && (d_option.first == EDNSOptionCode::ECS)) { // 'EDNS SUBNET' - if(getEDNSSubnetOptsFromString(d_option.second, &d_eso)) { + else if(s_doEDNSSubnetProcessing && (option.first == EDNSOptionCode::ECS)) { // 'EDNS SUBNET' + if(getEDNSSubnetOptsFromString(option.second, &d_eso)) { //cerr<<"Parsed, source: "<Arguments)"<entries=arg().list(); - for(const auto & entrie : entries) { - ret<<""<"<"<"<"<"<"<"<