mirror of
https://github.com/samba-team/samba.git
synced 2025-02-08 05:57:51 +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)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
/* Hide the evidence. */
|
/* Hide the evidence. */
|
||||||
memset_s(KO, KO_len, 0, KO_idx);
|
memset_s(KO, KO_len, 0, KO_idx);
|
||||||
ZERO_ARRAY_LEN(KO, KO_idx);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user