tpws: --tlsrec-pos use pos without tls record header len

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

View File

@ -261,7 +261,7 @@ void tamper_out(t_ctrack *ctrack, uint8_t *segment,size_t segment_buffer_size,si
if ((5+*size)<=segment_buffer_size) if ((5+*size)<=segment_buffer_size)
{ {
tpos = tls_pos(params.tlsrec, params.tlsrec_pos, segment, *size, 0); tpos = tls_pos(params.tlsrec, params.tlsrec_pos+5, segment, *size, 0);
if (tpos>5) if (tpos>5)
{ {
// construct 2 TLS records from one // construct 2 TLS records from one