diff options
author | Jeremy Allison <jra@samba.org> | 2009-11-12 13:56:33 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-11-12 13:56:33 -0800 |
commit | 5363d6e62c2d4d3275e78d04c48835524c54f620 (patch) | |
tree | a7570c052a33168acbf0ce74b9685a3ba7bf6355 /source3/auth/auth_netlogond.c | |
parent | 6747a91ca0c350374c54bac5892cf96e5aed029f (diff) | |
download | samba-5363d6e62c2d4d3275e78d04c48835524c54f620.tar.gz samba-5363d6e62c2d4d3275e78d04c48835524c54f620.tar.xz samba-5363d6e62c2d4d3275e78d04c48835524c54f620.zip |
Ensure all callers to the rpc_client/cli_pipe functions correctly
initialize return variables.
Jeremy.
Diffstat (limited to 'source3/auth/auth_netlogond.c')
-rw-r--r-- | source3/auth/auth_netlogond.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/auth/auth_netlogond.c b/source3/auth/auth_netlogond.c index 8c930a552a9..ebfed83d41e 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( |