Commit 4265faed authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[trac534] Fix NS & DNAME in apex

Getting the NS returned delegation, it checked only if the callback is
enabled there and it was enabled because of DNAME.
parent 4db21f81
......@@ -286,8 +286,8 @@ struct MemoryZone::MemoryZoneImpl {
Domain::const_iterator found;
// If the node callback is enabled, this may be a zone cut. If it
// has a NS RR, we should return a delegation.
if (node->isCallbackEnabled()) {
// has a NS RR, we should return a delegation, but not in the apex.
if (node->isCallbackEnabled() && node->getName() != origin_) {
found = node->getData()->find(RRType::NS());
if (found != node->getData()->end()) {
return (FindResult(DELEGATION, found->second));
......
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