Browse Source

tpws: fix crash when tampering is applied without remote end

pull/178/head
bol-van 1 year ago
parent
commit
d0cf7fdbb8
  1. 2
      tpws/tamper.c

2
tpws/tamper.c

@ -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…
Cancel
Save