mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-23 14:53:18 +00:00
tpws: fix crash when tampering is applied without remote end
This commit is contained in:
parent
77520d7f8b
commit
d0cf7fdbb8
@ -248,7 +248,7 @@ void tamper_out(t_ctrack *ctrack, uint8_t *segment,size_t segment_buffer_size,si
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (tpos)
|
||||
if (tpos && (5+*size)<=segment_buffer_size)
|
||||
{
|
||||
// construct 2 TLS records from one
|
||||
uint16_t l = pntoh16(segment+3); // length
|
||||
|
Loading…
Reference in New Issue
Block a user