mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-29 12:32:48 +00:00
Use sizeof() instead of magic constant
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
a5b1a3945b
commit
aee4cc4cbb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user