Permalink
Browse files

accept empty NOERROR if it comes with SOA -or- has aa set

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@3172 d19b8d6e-7fed-0310-83ef-9ca221ded41b
  • Loading branch information...
1 parent 8443b8f commit 4134690b1980b8f29666a13edacb912bc1d1d7e8 @Habbie Habbie committed Apr 22, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 pdns/syncres.cc
View
@@ -1125,8 +1125,8 @@ int SyncRes::doResolveAt(set<string, CIStringCompare> nameservers, string auth,
LOG(prefix<<qname<<": status=NXDOMAIN, we are done "<<(negindic ? "(have negative SOA)" : "")<<endl);
return RCode::NXDomain;
}
- if(nsset.empty() && !lwr.d_rcode && negindic) {
- LOG(prefix<<qname<<": status=noerror, other types may exist, but we are done (have negative SOA)"<<endl);
+ if(nsset.empty() && !lwr.d_rcode && (negindic || lwr.d_aabit)) {
+ LOG(prefix<<qname<<": status=noerror, other types may exist, but we are done"<<endl);
return 0;
}
else if(realreferral) {

0 comments on commit 4134690

Please sign in to comment.