diff options
author | Andreas Schneider <asn@samba.org> | 2018-10-26 14:50:29 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-02-27 03:22:50 +0100 |
commit | 0045a919b46f55e631040833220f357079857b34 (patch) | |
tree | b952b73a751e935941ecca564a389a703c89139b /libcli/auth | |
parent | b451168d72ec0026dd4ce36a3f2913a5842ba84d (diff) | |
download | samba-0045a919b46f55e631040833220f357079857b34.tar.gz |
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
Diffstat (limited to 'libcli/auth')
-rw-r--r-- | libcli/auth/credentials.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libcli/auth/credentials.c b/libcli/auth/credentials.c index b6c8ba281ba..fcd5e34cc9b 100644 --- a/libcli/auth/credentials.c +++ b/libcli/auth/credentials.c @@ -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)); |