Permalink
Browse files

make depth limiter somewhat more sophisticated

  • Loading branch information...
1 parent 437824d commit d393c2dda8132fcd5120f03ced24af2fffd31fe7 @Habbie Habbie committed May 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/syncres.cc
View
@@ -606,7 +606,7 @@ bool SyncRes::doCNAMECacheCheck(const string &qname, const QType &qtype, vector<
prefix.append(depth, ' ');
}
- if(depth>9) {
+ if((depth>9 && d_outqueries>10 && d_throttledqueries>5) || depth > 15) {
LOG(prefix<<qname<<": recursing (CNAME or other indirection) too deep, depth="<<depth<<endl);
res=RCode::ServFail;
return true;

0 comments on commit d393c2d

Please sign in to comment.