From: Otto Date: Fri, 5 Feb 2021 15:44:43 +0000 (+0100) Subject: Another missed one X-Git-Tag: dnsdist-1.6.0-alpha2~55^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9672%2Fhead;p=thirdparty%2Fpdns.git Another missed one --- diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index b7093fe589..51f8c7c40b 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -438,7 +438,7 @@ bool DNSPacket::getTSIGDetails(TSIGRecordContent* trc, DNSName* keyname, uint16_ bool gotit=false; for(const auto & answer : mdp.d_answers) { - if(d_answer.first.d_type == QType::TSIG && d_answer.first.d_class == QType::ANY) { + if(answer.first.d_type == QType::TSIG && answer.first.d_class == QType::ANY) { // cast can fail, f.e. if d_content is an UnknownRecordContent. shared_ptr content = std::dynamic_pointer_cast(answer.first.d_content); if (!content) {