From 57e6c93abc29673fc44b740fb2d4a4a3d676a968 Mon Sep 17 00:00:00 2001 From: Otto Date: Fri, 5 Feb 2021 16:44:43 +0100 Subject: [PATCH] Another missed one --- pdns/dnspacket.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.2