From a2da395f69c3bd545673d0c4ce7db5488661939b Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 27 Mar 2021 16:33:32 +0530 Subject: [PATCH] ZoneTree: fixed index out of bound exception in FindNodeValue(). --- DnsServerCore/Dns/Zones/ZoneTree.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/DnsServerCore/Dns/Zones/ZoneTree.cs b/DnsServerCore/Dns/Zones/ZoneTree.cs index e0952c37..4b0e5524 100644 --- a/DnsServerCore/Dns/Zones/ZoneTree.cs +++ b/DnsServerCore/Dns/Zones/ZoneTree.cs @@ -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;