From 8a302fc353de8d373a0ec8544da4da6f305ec923 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 25 Apr 2013 18:29:31 +0200 Subject: s3:rpc_client: use the correct context for netlogon_creds_copy() in rpccli_schannel_bind_data() Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- source3/rpc_client/cli_pipe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit