]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: Don't look up the packet cache for TSIG-enabled queries 4400/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 23 Aug 2016 13:51:11 +0000 (15:51 +0200)
committermind04 <mind04@monshouwer.org>
Thu, 1 Sep 2016 21:28:49 +0000 (23:28 +0200)
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

index 6da613967ad58aef43e67c48b11af827435fda38..a070dc1c112c8117da1431882bbe1e93792c9767 100644 (file)
@@ -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()