From 88ea8039e36ef2759f9a71c4314a34799cee7c25 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 17 Feb 2022 15:33:02 +1300 Subject: [PATCH] hcrypto: Fix typo when clearing context structure Signed-off-by: Joseph Sutton --- lib/hcrypto/rand-fortuna.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hcrypto/rand-fortuna.c b/lib/hcrypto/rand-fortuna.c index 313b86f83..74ba12396 100644 --- a/lib/hcrypto/rand-fortuna.c +++ b/lib/hcrypto/rand-fortuna.c @@ -336,7 +336,7 @@ add_entropy(FState * st, const unsigned char *data, unsigned len) st->pool0_bytes += len; memset_s(hash, sizeof(hash), 0, sizeof(hash)); - memset_s(&md, sizeof(hash), 0, sizeof(md)); + memset_s(&md, sizeof(md), 0, sizeof(md)); } /*