summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-10-30 16:12:16 +0100
committerJeremy Allison <jra@samba.org>2014-10-31 03:47:40 +0100
commit69d6d62a4ca6c727f0d22ce3e51b684ffa764c0d (patch)
tree84e13ce9806a96dd9d894bb3ecd948df67dfc3ba
parentd558281205a9a3c29cd10fdf94284caf37067fb7 (diff)
downloadsamba-69d6d62a4ca6c727f0d22ce3e51b684ffa764c0d.tar.gz
s3-rpcclient: Make sure current_nt_hash is initialized.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/rpcclient/rpcclient.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index 59685051a4d..9dec094f157 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -764,7 +764,9 @@ static NTSTATUS do_cmd(struct cli_state *cli,
enum netr_SchannelType sec_chan_type = 0;
const char *_account_name = NULL;
const char *account_name = NULL;
- struct samr_Password current_nt_hash;
+ struct samr_Password current_nt_hash = {
+ .hash = { 0 },
+ };
struct samr_Password *previous_nt_hash = NULL;
if (!get_trust_pw_hash(get_cmdline_auth_info_domain(auth_info),