Rework partial packet handling once more
[openssl.git] / util / perl / TLSProxy / Record.pm
index acace3651adff01a6f5bbc86938878f8bb90af30..49a0084d36a83774bca3eceb4168b59f5e347abe 100644 (file)
@@ -279,7 +279,8 @@ sub reconstruct_record
     my $server = shift;
     my $data;
 
-    if ($self->{sent}) {
+    #We only replay the records in the same direction
+    if ($self->{sent} || ($self->flight & 1) != $server) {
         return "";
     }
     $self->{sent} = 1;