Skip to content

Commit 9348e90

Browse files
committed
Made a difference between a parsing error and a bad cookie
1 parent 8a0384f commit 9348e90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DnsServerCore/Dns/DnsServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2577,7 +2577,7 @@ private async Task<DnsDatagram> ProcessRequestAsync(DnsDatagram request, IPEndPo
25772577
}
25782578
else
25792579
{
2580-
if (!cookie.ServerCookie.IsEmpty && cookie.ServerCookie.Length > 0)
2580+
if (!cookie.ServerCookie.IsEmpty && cookie.ServerCookie.Length > 8)
25812581
{
25822582
if (!_cookieValidator.Validate(
25832583
remoteEP.Address,

0 commit comments

Comments
 (0)