diff --git a/util/perl/TLSProxy/Record.pm b/util/perl/TLSProxy/Record.pm index c949287512af073397e62adec82281ebb1b0ee30..773f759aab3e8262428c0f62a0ebd82b5bef72bc 100644 --- a/util/perl/TLSProxy/Record.pm +++ b/util/perl/TLSProxy/Record.pm @@ -286,15 +286,13 @@ sub reconstruct_record my $self = shift; my $server = shift; my $data; - my $tls13_enc = 0; if ($self->sslv2) { $data = pack('n', $self->len | 0x8000); } else { if (TLSProxy::Proxy->is_tls13() && $self->encrypted) { $data = pack('Cnn', $self->outer_content_type, $self->version, - $self->len + 1); - $tls13_enc = 1; + $self->len); } else { $data = pack('Cnn', $self->content_type, $self->version, $self->len); @@ -303,10 +301,6 @@ sub reconstruct_record } $data .= $self->data; - if ($tls13_enc) { - $data .= pack('C', $self->content_type); - } - return $data; }