ZoneTree: updated FindZone() to clear closestSubDomain when closestAuthority value changes.

This commit is contained in:
Shreyas Zare
2022-04-30 18:14:56 +05:30
parent eb720faaee
commit b86fa6633f

View File

@@ -249,6 +249,7 @@ namespace DnsServerCore.Dns.Trees
closestAuthority = authority;
closestAuthorityNode = currentNode;
closestSubDomain = null; //clear previous closest sub domain
wildcard = null; //clear previous wildcard node
}
}
@@ -320,6 +321,8 @@ namespace DnsServerCore.Dns.Trees
{
closestAuthority = authority;
closestAuthorityNode = currentNode;
closestSubDomain = null; //clear previous closest sub domain
}
}
@@ -379,6 +382,8 @@ namespace DnsServerCore.Dns.Trees
{
closestAuthority = authority;
closestAuthorityNode = currentNode;
closestSubDomain = null; //clear previous closest sub domain
}
}
@@ -412,6 +417,8 @@ namespace DnsServerCore.Dns.Trees
{
closestAuthority = authority;
closestAuthorityNode = currentNode;
closestSubDomain = null; //clear previous closest sub domain
}
}