Permalink
Browse files

tweak depth limiter

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@3160 d19b8d6e-7fed-0310-83ef-9ca221ded41b
  • Loading branch information...
1 parent 8c84819 commit 02d1742b890aa5981bee69d2c10371e037182c22 @Habbie Habbie committed Apr 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 pdns/syncres.cc
View
@@ -606,7 +606,7 @@ bool SyncRes::doCNAMECacheCheck(const string &qname, const QType &qtype, vector<
prefix.append(depth, ' ');
}
- if(depth>10) {
+ if(depth>9) {
LOG(prefix<<qname<<": CNAME loop too deep, depth="<<depth<<endl);
res=RCode::ServFail;
return true;
@@ -860,7 +860,7 @@ int SyncRes::doResolveAt(set<string, CIStringCompare> nameservers, string auth,
pierceDontQuery=true;
}
else {
- remoteIPs=getAddrs(*tns, depth+1, beenthere);
+ remoteIPs=getAddrs(*tns, depth+2, beenthere);
pierceDontQuery=false;
}

0 comments on commit 02d1742

Please sign in to comment.