From d7768235daf4f36d2a8b3e39b59d49ffea50bb59 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Thu, 18 Jan 2024 12:08:21 +0100 Subject: [PATCH] Update library/timing.c Co-authored-by: Gilles Peskine Signed-off-by: Gianfranco Costamagna --- library/timing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/timing.c b/library/timing.c index 2777f6f5eae8..b1f72fe1bae8 100644 --- a/library/timing.c +++ b/library/timing.c @@ -401,7 +401,7 @@ int mbedtls_timing_self_test(int verbose) uint32_t a = 0, b = 0; mbedtls_timing_delay_context ctx; - memset(ctx, 0, sizeof(ctx)); + memset(&ctx, 0, sizeof(ctx)); if (verbose != 0) { mbedtls_printf(" TIMING tests note: will take some time!\n"); }