Fix a bug in TLSProxy where zero length messages were not being recorded
authorMatt Caswell <matt@openssl.org>
Tue, 22 Nov 2016 16:16:23 +0000 (16:16 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 8 Dec 2016 17:19:38 +0000 (17:19 +0000)
Perl changes reviewed by Richard Levitte. Non-perl changes reviewed by Rich
Salz

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
util/TLSProxy/Message.pm

index 8e743c5..e5c42c8 100644 (file)
@@ -187,7 +187,7 @@ sub get_messages
                 $recoffset += 4;
                 $payload = "";
                 
-                if ($recoffset < $record->decrypt_len) {
+                if ($recoffset <= $record->decrypt_len) {
                     #Some payload data is present in this record
                     if ($record->decrypt_len - $recoffset >= $messlen) {
                         #We can complete the message with this record