From 7658c9bf0a9c99e3f200571d6307334a851d0d06 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 30 Nov 2023 16:20:02 +1300 Subject: [PATCH] lib:crypto: Remove redundant array zeroing The call to memset_s() was supposed to replace the use of ZERO_ARRAY_LEN(), but somehow both lines have crept in. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- lib/crypto/gnutls_sp800_108.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/crypto/gnutls_sp800_108.c b/lib/crypto/gnutls_sp800_108.c index 65710657bae..fb0aa039213 100644 --- a/lib/crypto/gnutls_sp800_108.c +++ b/lib/crypto/gnutls_sp800_108.c @@ -224,7 +224,6 @@ out: if (!NT_STATUS_IS_OK(status)) { /* Hide the evidence. */ memset_s(KO, KO_len, 0, KO_idx); - ZERO_ARRAY_LEN(KO, KO_idx); } return status;