mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-12-03 11:51:24 +03:00
Use sizeof() instead of magic constant
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
@@ -300,7 +300,7 @@ int mbedtls_ssl_cache_set( void *data,
|
||||
if( ret != 0 )
|
||||
goto exit;
|
||||
|
||||
if( session_id_len > 32 )
|
||||
if( session_id_len > sizeof( cur->session_id ) )
|
||||
{
|
||||
ret = 1;
|
||||
goto exit;
|
||||
|
||||
Reference in New Issue
Block a user