commit | d96a5c2d86ee01c61f3c8d8a16f16d351b72fc82 | [log] [tgz] |
---|---|---|
author | Jerry Yu <jerry.h.yu@arm.com> | Wed Sep 29 17:46:51 2021 +0800 |
committer | Jerry Yu <jerry.h.yu@arm.com> | Wed Sep 29 17:46:51 2021 +0800 |
tree | d6fe9690f5dca19ea221df70ab0343d11e5c74e9 | |
parent | d9a94fe3d096d488fb54688033c10fbcfd980001 [diff] [blame] |
Fix wrong usage of counter len macro Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/library/ssl_srv.c b/library/ssl_srv.c index 79c160e..e27fdff 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c
@@ -1221,7 +1221,7 @@ } 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 )