]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Another missed one 9672/head
authorOtto <otto.moerbeek@open-xchange.com>
Fri, 5 Feb 2021 15:44:43 +0000 (16:44 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Fri, 5 Feb 2021 15:44:43 +0000 (16:44 +0100)
pdns/dnspacket.cc

index b7093fe5894c8e2da948307b3251f23a09d92b26..51f8c7c40bae8d91b4cdbf4324cb0a4e0ea9e4f9 100644 (file)
@@ -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<TSIGRecordContent> content = std::dynamic_pointer_cast<TSIGRecordContent>(answer.first.d_content);
       if (!content) {