[PATCH 1/4] s3-rpcclient: Make sure current_nt_hash is initialized.

Andreas Schneider asn at samba.org
Thu Oct 30 09:12:16 MDT 2014


Signed-off-by: Andreas Schneider <asn at samba.org>
---
 source3/rpcclient/rpcclient.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index 5968505..9dec094 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),
-- 
2.1.2




More information about the samba-technical mailing list