We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a156f84 commit 551dd57Copy full SHA for 551dd57
src/platform/tls_stub.c
@@ -976,7 +976,7 @@ QuicTlsServerProcess(
976
case TlsExt_ServerName: {
977
const QUIC_TLS_SNI_EXT* SNI = (QUIC_TLS_SNI_EXT*)ExtList;
978
uint16_t NameLength = TlsReadUint16(SNI->NameLength);
979
- if (SNI->NameLength != 0) {
+ if (NameLength != 0) {
980
TlsContext->SNI = QUIC_ALLOC_PAGED(NameLength + 1);
981
memcpy((char*)TlsContext->SNI, SNI->Name, NameLength);
982
((char*)TlsContext->SNI)[NameLength] = 0;
0 commit comments