Skip to content

Commit 551dd57

Browse files
authored
Fix minor stub bug (#550)
1 parent a156f84 commit 551dd57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/tls_stub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ QuicTlsServerProcess(
976976
case TlsExt_ServerName: {
977977
const QUIC_TLS_SNI_EXT* SNI = (QUIC_TLS_SNI_EXT*)ExtList;
978978
uint16_t NameLength = TlsReadUint16(SNI->NameLength);
979-
if (SNI->NameLength != 0) {
979+
if (NameLength != 0) {
980980
TlsContext->SNI = QUIC_ALLOC_PAGED(NameLength + 1);
981981
memcpy((char*)TlsContext->SNI, SNI->Name, NameLength);
982982
((char*)TlsContext->SNI)[NameLength] = 0;

0 commit comments

Comments
 (0)