From c9713e84bca873c2620ad27fc1d67d56d0daf93f Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 23 Aug 2016 15:51:11 +0200 Subject: [PATCH] auth: Don't look up the packet cache for TSIG-enabled queries We are rightfully careful about not caching responses for TSIG-enabled queries, but we would nevertheless happily serve cached entries for those. --- pdns/dnspacket.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index 6da613967a..a070dc1c11 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -232,7 +232,7 @@ void DNSPacket::setCompress(bool compress) bool DNSPacket::couldBeCached() { - return d_ednsping.empty() && !d_wantsnsid && qclass==QClass::IN; + return d_ednsping.empty() && !d_wantsnsid && qclass==QClass::IN && !d_havetsig; } unsigned int DNSPacket::getMinTTL() -- 2.47.2