1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

auth:gensec: Zero digest array in error case

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-12-05 15:47:23 +13:00 committed by Andrew Bartlett
parent 60e9e3e01c
commit e607a59c80

View File

@ -208,12 +208,11 @@ static NTSTATUS netsec_do_seq_num(struct schannel_state *state,
checksum,
checksum_length,
_sequence_key);
ZERO_ARRAY(digest1);
if (rc < 0) {
return gnutls_error_to_ntstatus(rc, NT_STATUS_HMAC_NOT_SUPPORTED);
}
ZERO_ARRAY(digest1);
rc = gnutls_cipher_init(&cipher_hnd,
GNUTLS_CIPHER_ARCFOUR_128,
&sequence_key,