summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_pipe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 068510a371..b4a4bed05f 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -2403,7 +2403,10 @@ static NTSTATUS rpccli_schannel_bind_data(TALLOC_CTX *mem_ctx,
schannel_auth->state = SCHANNEL_STATE_START;
schannel_auth->initiator = true;
- schannel_auth->creds = netlogon_creds_copy(result, creds);
+ schannel_auth->creds = netlogon_creds_copy(schannel_auth, creds);
+ if (schannel_auth->creds == NULL) {
+ goto fail;
+ }
result->auth_ctx = schannel_auth;
*presult = result;