Fix a bug in TLSProxy where zero length messages were not being recorded

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>
This commit is contained in:
Matt Caswell 2016-11-22 16:16:23 +00:00
parent 0bfe166b8f
commit d70bde8805

View 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