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>
Mon, 23 Jan 2017 14:09:10 +0000 (14:09 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1983)

util/TLSProxy/Message.pm

index 1810d8c30ecde0bd9012431eb067124e2e170eca..0821bdedd328baa08b714c7fdb6da8806ccc9e00 100644 (file)
@@ -171,7 +171,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