]> granicus.if.org Git - pdns/commitdiff
Make sure rfc2136 packets are not cached.
authorRuben d'Arco <cyclops@prof-x.net>
Mon, 3 Dec 2012 05:21:29 +0000 (06:21 +0100)
committermind04 <mind04@monshouwer.org>
Fri, 12 Jul 2013 15:14:36 +0000 (17:14 +0200)
pdns/common_startup.cc

index e2fc1d0d561be1e407f79c5fa75b7ee8ea8bea2f..c24746a392f45fe2a878d3febc707f2052621356 100644 (file)
@@ -287,7 +287,7 @@ void *qthread(void *number)
     }
 
 
-    if((P->d.opcode != Opcode::Notify) && P->couldBeCached() && PC.get(P, &cached)) { // short circuit - does the PacketCache recognize this question?
+    if((P->d.opcode != Opcode::Notify && P->d.opcode != Opcode::Update) && P->couldBeCached() && PC.get(P, &cached)) { // short circuit - does the PacketCache recognize this question?
       if(logDNSQueries)
         L<<"packetcache HIT"<<endl;
       cached.setRemote(&P->d_remote);  // inlined