diff options
author | Jeremy Allison <jra@samba.org> | 2010-07-20 14:59:31 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-07-20 14:59:31 -0700 |
commit | cce19c51625e2d73a541bbdfcc549f5a63c26abe (patch) | |
tree | 1803424149e5593829e67650202db5c0e5ef4361 /source3/rpc_client/cli_pipe.c | |
parent | 4ed9437b7e24365b9acd179b6553793db95a4c54 (diff) | |
download | samba-cce19c51625e2d73a541bbdfcc549f5a63c26abe.tar.gz samba-cce19c51625e2d73a541bbdfcc549f5a63c26abe.tar.bz2 samba-cce19c51625e2d73a541bbdfcc549f5a63c26abe.zip |
Fix one more data_blob -> data_blob_talloc. Move away from implicit NULL context tallocs.
Jeremy.
Diffstat (limited to 'source3/rpc_client/cli_pipe.c')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 226f1391ff..3ca9271a82 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -1352,7 +1352,7 @@ static NTSTATUS create_spnego_ntlmssp_auth_rpc_bind_req(struct rpc_pipe_client * } /* Wrap this in SPNEGO. */ - spnego_msg = spnego_gen_negTokenInit(OIDs_ntlm, &request, NULL); + spnego_msg = spnego_gen_negTokenInit(talloc_tos(), OIDs_ntlm, &request, NULL); data_blob_free(&request); @@ -1363,6 +1363,7 @@ static NTSTATUS create_spnego_ntlmssp_auth_rpc_bind_req(struct rpc_pipe_client * 1, /* auth_context_id */ &spnego_msg, auth_info); + if (!NT_STATUS_IS_OK(status)) { data_blob_free(&spnego_msg); return status; @@ -1370,6 +1371,7 @@ static NTSTATUS create_spnego_ntlmssp_auth_rpc_bind_req(struct rpc_pipe_client * DEBUG(5, ("create_spnego_ntlmssp_auth_rpc_bind_req: NTLMSSP Negotiate:\n")); dump_data(5, spnego_msg.data, spnego_msg.length); + data_blob_free(&spnego_msg); return NT_STATUS_OK; } |