[svn] commit: r1140 - /trunk/src/lib/auth/data_source.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Mar 5 19:53:50 UTC 2010
Author: each
Date: Fri Mar 5 19:53:49 2010
New Revision: 1140
Log:
- NS records for queries on subzone/NS were going in the answer section
Modified:
trunk/src/lib/auth/data_source.cc
Modified: trunk/src/lib/auth/data_source.cc
==============================================================================
--- trunk/src/lib/auth/data_source.cc (original)
+++ trunk/src/lib/auth/data_source.cc Fri Mar 5 19:53:49 2010
@@ -475,7 +475,9 @@
return;
}
BOOST_FOREACH (RRsetPtr rrset, auth) {
- if (rrset->getType() == task->qtype) {
+ if (rrset->getType() == RRType::NS()) {
+ m.addRRset(Section::AUTHORITY(), rrset, q.wantDnssec());
+ } else if (rrset->getType() == task->qtype) {
m.addRRset(Section::ANSWER(), rrset, q.wantDnssec());
} else if (rrset->getType() == RRType::DS() &&
q.wantDnssec()) {
More information about the bind10-changes
mailing list