mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-26 21:35:35 +00:00
- Fixed too restrictive test
This commit is contained in:
parent
96d42da8fe
commit
f34cf85534
@ -880,7 +880,7 @@ static int ssl_decrypt_buf( ssl_context *ssl )
|
|||||||
/*
|
/*
|
||||||
* Always compute the MAC (RFC4346, CBCTIME).
|
* 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_DEBUG_MSG( 1, ( "msglen (%d) < maclen (%d) + padlen (%d)",
|
||||||
ssl->in_msglen, ssl->maclen, padlen ) );
|
ssl->in_msglen, ssl->maclen, padlen ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user