1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

s3:rpc_client: Use C99 inititializer in dcerpc_samr_chgpasswd_user()

This also cleans up after using them.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2019-01-21 13:16:56 +01:00 committed by Andreas Schneider
parent 0a8a1c9c78
commit 80b6ad51f9
2 changed files with 10 additions and 10 deletions

View File

@ -41,15 +41,10 @@ NTSTATUS dcerpc_samr_chgpasswd_user(struct dcerpc_binding_handle *h,
NTSTATUS status;
struct samr_Password hash1, hash2, hash3, hash4, hash5, hash6;
uchar old_nt_hash[16];
uchar old_lm_hash[16];
uchar new_nt_hash[16];
uchar new_lm_hash[16];
ZERO_STRUCT(old_nt_hash);
ZERO_STRUCT(old_lm_hash);
ZERO_STRUCT(new_nt_hash);
ZERO_STRUCT(new_lm_hash);
uint8_t old_nt_hash[16] = {0};
uint8_t old_lm_hash[16] = {0};
uint8_t new_nt_hash[16] = {0};
uint8_t new_lm_hash[16] = {0};
DEBUG(10,("rpccli_samr_chgpasswd_user\n"));
@ -81,6 +76,11 @@ NTSTATUS dcerpc_samr_chgpasswd_user(struct dcerpc_binding_handle *h,
&hash6,
presult);
ZERO_ARRAY(old_nt_hash);
ZERO_ARRAY(old_lm_hash);
ZERO_ARRAY(new_nt_hash);
ZERO_ARRAY(new_lm_hash);
return status;
}

View File

@ -1062,7 +1062,7 @@ bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
source='rpc_client/init_samr.c',
deps='samba-util')
deps='samba-util GNUTLS_HELPERS')
bld.SAMBA3_SUBSYSTEM('LIBLSA',
source='lib/lsa.c')