mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-29 13:00:35 +00:00
ZoneTree: fixed index out of bound exception in FindNodeValue().
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user