- Fixed too restrictive test

This commit is contained in:
Paul Bakker 2012-04-10 07:48:40 +00:00
parent 96d42da8fe
commit f34cf85534

View File

@ -880,7 +880,7 @@ static int ssl_decrypt_buf( ssl_context *ssl )
/*
* Always compute the MAC (RFC4346, CBCTIME).
*/
if( ssl->in_msglen <= ssl->maclen + padlen )
if( ssl->in_msglen < ssl->maclen + padlen )
{
SSL_DEBUG_MSG( 1, ( "msglen (%d) < maclen (%d) + padlen (%d)",
ssl->in_msglen, ssl->maclen, padlen ) );