mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
libcli:auth: Avoid explicit ZERO_STRUCT
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Feb 27 03:22:50 CET 2019 on sn-devel-144
This commit is contained in:
parent
b451168d72
commit
0045a919b4
@ -76,14 +76,12 @@ static void netlogon_creds_init_128bit(struct netlogon_creds_CredentialState *cr
|
||||
const struct netr_Credential *server_challenge,
|
||||
const struct samr_Password *machine_password)
|
||||
{
|
||||
unsigned char zero[4], tmp[16];
|
||||
uint8_t zero[4] = {0}, tmp[16];
|
||||
HMACMD5Context ctx;
|
||||
MD5_CTX md5;
|
||||
|
||||
ZERO_ARRAY(creds->session_key);
|
||||
|
||||
memset(zero, 0, sizeof(zero));
|
||||
|
||||
hmac_md5_init_rfc2104(machine_password->hash, sizeof(machine_password->hash), &ctx);
|
||||
MD5Init(&md5);
|
||||
MD5Update(&md5, zero, sizeof(zero));
|
||||
|
Loading…
x
Reference in New Issue
Block a user