Skip to content

Commit ecb95be

Browse files
Fix incorrect size used for zeroization of buffer
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
1 parent 5e678fd commit ecb95be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/ssl_tls.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7722,7 +7722,7 @@ static int ssl_calc_finished_tls_generic(mbedtls_ssl_context *ssl, void *ctx,
77227722

77237723
MBEDTLS_SSL_DEBUG_BUF(3, "calc finished result", buf, len);
77247724

7725-
mbedtls_platform_zeroize(padbuf, sizeof(padbuf));
7725+
mbedtls_platform_zeroize(padbuf, hlen);
77267726

77277727
MBEDTLS_SSL_DEBUG_MSG(2, ("<= calc finished"));
77287728

0 commit comments

Comments
 (0)