mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 09:35:39 +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).
|
||||
*/
|
||||
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 ) );
|
||||
|
|
Loading…
Reference in a new issue