From 845418b4027d9d30a7de2a54e4944a8878d3f90e Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Fri, 30 Dec 2016 10:11:57 +0100 Subject: Free whole MD5 context --- modules/benchmark/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/benchmark/md5.c b/modules/benchmark/md5.c index 70f39c45..f4032ddd 100644 --- a/modules/benchmark/md5.c +++ b/modules/benchmark/md5.c @@ -173,7 +173,7 @@ struct MD5Context *ctx; putu32(ctx->buf[1], digest + 4); putu32(ctx->buf[2], digest + 8); putu32(ctx->buf[3], digest + 12); - memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ + memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ } #ifndef ASM_MD5 -- cgit v1.2.3