diff options
-rw-r--r-- | source3/rpc_client/cli_samr.c | 18 | ||||
-rw-r--r-- | source3/wscript_build | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c index e2bf08de4a0..7764e1a8540 100644 --- a/source3/rpc_client/cli_samr.c +++ b/source3/rpc_client/cli_samr.c @@ -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; } diff --git a/source3/wscript_build b/source3/wscript_build index b61fc3cc95f..7d44071225e 100644 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -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') |