Permalink
Browse files

check scopeMask of answer packet, not of query packet!

  • Loading branch information...
1 parent ee5e175 commit c76f6f485ad469e6e3cd4cfea8a6caa1c1c79e16 @ahupowerdns ahupowerdns committed May 29, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 pdns/packethandler.cc
@@ -1391,7 +1391,8 @@ DNSPacket *PacketHandler::questionOrRecurse(DNSPacket *p, bool *shouldRecurse)
}
editSOA(d_dk, sd.qname, r);
- BOOST_FOREACH(const DNSResourceRecord& rr, p->getRRS()) {
+
+ BOOST_FOREACH(const DNSResourceRecord& rr, r->getRRS()) {
if(rr.scopeMask) {
noCache=1;
break;

0 comments on commit c76f6f4

Please sign in to comment.