]> granicus.if.org Git - pdns/commitdiff
disable negative getSOA caching if the negcache_ttl is 0
authorKees Monshouwer <mind04@monshouwer.org>
Sat, 17 Sep 2016 22:28:41 +0000 (00:28 +0200)
committermind04 <mind04@monshouwer.org>
Wed, 28 Sep 2016 08:17:43 +0000 (10:17 +0200)
pdns/ueberbackend.cc

index 18853eada3d4b0e1c825e1ee84ba2dfda8642997..b558468b913a705d2edc80a2d21e0dd8a939b866 100644 (file)
@@ -396,7 +396,8 @@ bool UeberBackend::getSOAUncached(const DNSName &domain, SOAData &sd, DNSPacket
       return true;
     }
 
-  addNegCache(d_question);
+  if(d_negcache_ttl)
+    addNegCache(d_question);
   return false;
 }