1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

Remove erroneous 'presult = NULL' changes. Now presult only gets set

if NTSTATUS == OK.
Jeremy.
This commit is contained in:
Jeremy Allison 2009-11-12 13:59:25 -08:00
parent 496d147dc4
commit 0363713031

View File

@ -3469,18 +3469,13 @@ NTSTATUS rpc_pipe_open_tcp(TALLOC_CTX *mem_ctx, const char *host,
NTSTATUS status;
uint16_t port = 0;
*presult = NULL;
status = rpc_pipe_get_tcp_port(host, abstract_syntax, &port);
if (!NT_STATUS_IS_OK(status)) {
goto done;
return status;
}
status = rpc_pipe_open_tcp_port(mem_ctx, host, port,
return rpc_pipe_open_tcp_port(mem_ctx, host, port,
abstract_syntax, presult);
done:
return status;
}
/********************************************************************
@ -4123,8 +4118,6 @@ NTSTATUS cli_rpc_pipe_open_schannel(struct cli_state *cli,
struct rpc_pipe_client *result = NULL;
NTSTATUS status;
*presult = NULL;
status = get_schannel_session_key(cli, domain, &neg_flags,
&netlogon_pipe);
if (!NT_STATUS_IS_OK(status)) {