1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00

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 <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-11-30 16:20:02 +13:00 committed by Andrew Bartlett
parent af2b5f46b9
commit 7658c9bf0a

View File

@ -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;