diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-04-25 18:29:31 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2013-08-05 10:30:02 +0200 |
commit | 8a302fc353de8d373a0ec8544da4da6f305ec923 (patch) | |
tree | 2e114d38a3015ab4eb48341d20a2e4c53d65b53e | |
parent | 6ce645e03c279cbb2ed8a94f033b8e0601b61ef4 (diff) | |
download | samba-8a302fc353de8d373a0ec8544da4da6f305ec923.tar.gz samba-8a302fc353de8d373a0ec8544da4da6f305ec923.tar.xz samba-8a302fc353de8d373a0ec8544da4da6f305ec923.zip |
s3:rpc_client: use the correct context for netlogon_creds_copy() in rpccli_schannel_bind_data()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 5 |
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; |