ZoneTree: fixed index out of bound exception in FindNodeValue().

This commit is contained in:
Shreyas Zare
2021-03-27 16:33:32 +05:30
parent ab7dff2025
commit a2da395f69

View File

@@ -310,13 +310,11 @@ namespace DnsServerCore.Dns.Zones
//use wildcard node
//skip to next label
do
while (++i < key.Length)
{
i++;
if (key[i] == 39) //[.]
break;
}
while (i < key.Length);
closestNode = wildcard;
wildcard = null;