From 5363d6e62c2d4d3275e78d04c48835524c54f620 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 12 Nov 2009 13:56:33 -0800 Subject: Ensure all callers to the rpc_client/cli_pipe functions correctly initialize return variables. Jeremy. --- source3/auth/auth_netlogond.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/auth/auth_netlogond.c') diff --git a/source3/auth/auth_netlogond.c b/source3/auth/auth_netlogond.c index 8c930a552a..ebfed83d41 100644 --- a/source3/auth/auth_netlogond.c +++ b/source3/auth/auth_netlogond.c @@ -31,8 +31,8 @@ static NTSTATUS netlogond_validate(TALLOC_CTX *mem_ctx, struct netr_SamInfo3 **pinfo3, NTSTATUS *schannel_bind_result) { - struct rpc_pipe_client *p; - struct cli_pipe_auth_data *auth; + struct rpc_pipe_client *p = NULL; + struct cli_pipe_auth_data *auth = NULL; struct netr_SamInfo3 *info3 = NULL; NTSTATUS status; @@ -158,14 +158,14 @@ static NTSTATUS check_netlogond_security(const struct auth_context *auth_context { TALLOC_CTX *frame = talloc_stackframe(); struct netr_SamInfo3 *info3 = NULL; - struct rpc_pipe_client *p; - struct cli_pipe_auth_data *auth; + struct rpc_pipe_client *p = NULL; + struct cli_pipe_auth_data *auth = NULL; uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS; - char *plaintext_machinepw; + char *plaintext_machinepw = NULL; uint8_t machine_password[16]; uint8_t schannel_key[16]; NTSTATUS schannel_bind_result, status; - struct named_mutex *mutex; + struct named_mutex *mutex = NULL; const char *ncalrpcsock; ncalrpcsock = lp_parm_const_string( -- cgit