mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 20:20:53 +03: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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (tpos)
|
if (tpos && (5+*size)<=segment_buffer_size)
|
||||||
{
|
{
|
||||||
// construct 2 TLS records from one
|
// construct 2 TLS records from one
|
||||||
uint16_t l = pntoh16(segment+3); // length
|
uint16_t l = pntoh16(segment+3); // length
|
||||||
|
Loading…
Reference in New Issue
Block a user