summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-01-21 13:16:56 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-06-27 12:54:24 +0000
commit80b6ad51f9a029e0b315dabc852ce548bc76a21f (patch)
tree43fa40aa54ecf4b77566f1001e8f4a038d30be7b /source3/rpc_client
parent0a8a1c9c78f4f4eda45514a267e080543b3c29ef (diff)
downloadsamba-80b6ad51f9a029e0b315dabc852ce548bc76a21f.tar.gz
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>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_samr.c18
1 files changed, 9 insertions, 9 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;
}