From 029e4cadd7be4578a67a69ac90ece83a9f25ef75 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 13 Jun 2024 13:23:12 +0300 Subject: [PATCH] tpws: tlsrec,split-tls use byte position if no SNI --- tpws/tamper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpws/tamper.c b/tpws/tamper.c index 48e3448..325d3d1 100644 --- a/tpws/tamper.c +++ b/tpws/tamper.c @@ -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; }