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:
parent
af2b5f46b9
commit
7658c9bf0a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user