summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-11-10 13:10:12 +0100
committerGünther Deschner <gd@samba.org>2009-11-10 13:10:12 +0100
commitd241b9ae4c9b520406aac98e24d078f2d4fd4ae5 (patch)
tree59a9faa8e006b7922ad9d9d04f3e92217be3018f /source3
parentbbff69384eb6ff3169e330e2ba29b8f756c04c9a (diff)
downloadsamba-d241b9ae4c9b520406aac98e24d078f2d4fd4ae5.tar.gz
samba-d241b9ae4c9b520406aac98e24d078f2d4fd4ae5.tar.bz2
samba-d241b9ae4c9b520406aac98e24d078f2d4fd4ae5.zip
s3-rpc_client: make sure cli_rpc_pipe_open_schannel() does not always return NT_STATUS_OK.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_pipe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 9ff84f8b6d..28d9d99d05 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -4123,6 +4123,8 @@ 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)) {
@@ -4143,7 +4145,7 @@ NTSTATUS cli_rpc_pipe_open_schannel(struct cli_state *cli,
*presult = result;
}
- return NT_STATUS_OK;
+ return status;
}
/****************************************************************************