mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Fix wrong usage of counter len macro
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
@ -1221,7 +1221,7 @@ read_record_header:
|
||||
}
|
||||
|
||||
memcpy( &ssl->cur_out_ctr[2], ssl->in_ctr + 2,
|
||||
MBEDTLS_SSL_COUNTER_LEN - 2 );
|
||||
sizeof( ssl->cur_out_ctr ) - 2 );
|
||||
|
||||
#if defined(MBEDTLS_SSL_DTLS_ANTI_REPLAY)
|
||||
if( mbedtls_ssl_dtls_replay_check( ssl ) != 0 )
|
||||
|
Reference in New Issue
Block a user