From b43f0b0f89ef232160f31dd9bb500621a46cd504 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 13 Jun 2024 12:23:13 +0300 Subject: [PATCH] tpws: --tlsrec-pos use pos without tls record header len --- tpws/tamper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpws/tamper.c b/tpws/tamper.c index a483805..48e3448 100644 --- a/tpws/tamper.c +++ b/tpws/tamper.c @@ -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) { - 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) { // construct 2 TLS records from one