tpws: tlsrec,split-tls use byte position if no SNI

This commit is contained in:
bol-van 2024-06-13 13:23:12 +03:00
parent b43f0b0f89
commit 029e4cadd7

View File

@ -33,7 +33,7 @@ static size_t tls_pos(enum tlspos tpos_type, size_t tpos_pos, const uint8_t *tls
case tlspos_sniext:
if (TLSFindExt(tls,sz,0,&ext,&elen,false))
return (tpos_type==tlspos_sni) ? ext-tls+6 : ext-tls+1;
break;
// fall through
case tlspos_pos:
return tpos_pos;
}