Commit 6570e46b authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1571] added special case for DS lookup: it should always be considered in-zone.

now the test passed.
parent e3a6fbfd
......@@ -557,7 +557,10 @@ struct InMemoryZoneFinder::InMemoryZoneFinderImpl {
// If the node callback is enabled, this may be a zone cut. If it
// has a NS RR, we should return a delegation, but not in the apex.
if (node->getFlag(DomainNode::FLAG_CALLBACK) && node != origin_data_) {
// There is one exception: the case for DS query, which should always
// be considered in-zone lookup.
if (node->getFlag(DomainNode::FLAG_CALLBACK) && node != origin_data_ &&
type != RRType::DS()) {
found = node->getData()->find(RRType::NS());
if (found != node->getData()->end()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment