Skip to content

Commit 8e5ed75

Browse files
committed
nit
1 parent 8201939 commit 8e5ed75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Servers/Kestrel/Core/src/Middleware/TlsListenerMiddleware.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Buffers;
5+
using System.Diagnostics;
56
using Microsoft.AspNetCore.Connections;
67

78
namespace Microsoft.AspNetCore.Server.Kestrel.Core.Middleware;
@@ -53,6 +54,7 @@ internal async Task OnTlsClientHelloAsync(ConnectionContext connection)
5354

5455
// Here either it's a valid TLS client hello or definitely not a TLS client hello.
5556
// Anyway we can continue with the middleware pipeline
57+
Debug.Assert(parseState is ClientHelloParseState.ValidTlsClientHello or ClientHelloParseState.NotTlsClientHello);
5658
break;
5759
}
5860

0 commit comments

Comments
 (0)