summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-01-09 21:22:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:57 -0500
commit1f10e729c024cba1d530733ef98c22e2acd7dc19 (patch)
treee4bb2ee485d820f8ece790b78ceed0ff8a0a2756
parent8d15aee01757658c62ef301829c4488b4ce70b4d (diff)
downloadsamba-1f10e729c024cba1d530733ef98c22e2acd7dc19.tar.gz
samba-1f10e729c024cba1d530733ef98c22e2acd7dc19.tar.bz2
samba-1f10e729c024cba1d530733ef98c22e2acd7dc19.zip
r12800: Replace tmp_ctx with mem_ctx to make variables name more
consistent along the file. rafal (This used to be commit aaccb91cca5da8a869878326da298d22a3b8b2ae)
-rw-r--r--source4/librpc/rpc/dcerpc_connect.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/librpc/rpc/dcerpc_connect.c b/source4/librpc/rpc/dcerpc_connect.c
index 3ad19ef991..1c9ab8c0ed 100644
--- a/source4/librpc/rpc/dcerpc_connect.c
+++ b/source4/librpc/rpc/dcerpc_connect.c
@@ -99,7 +99,7 @@ void continue_smb_connect(struct composite_context *ctx)
Initiate async open of a rpc connection to a rpc pipe on SMB using
the binding structure to determine the endpoint and options
*/
-struct composite_context *dcerpc_pipe_connect_ncacn_np_smb_send(TALLOC_CTX *tmp_ctx,
+struct composite_context *dcerpc_pipe_connect_ncacn_np_smb_send(TALLOC_CTX *mem_ctx,
struct dcerpc_pipe_connect *io)
{
struct composite_context *c;
@@ -108,7 +108,7 @@ struct composite_context *dcerpc_pipe_connect_ncacn_np_smb_send(TALLOC_CTX *tmp_
struct smb_composite_connect *conn;
/* composite context allocation and setup */
- c = talloc_zero(tmp_ctx, struct composite_context);
+ c = talloc_zero(mem_ctx, struct composite_context);
if (c == NULL) return NULL;
s = talloc_zero(c, struct pipe_np_smb_state);
@@ -128,7 +128,7 @@ struct composite_context *dcerpc_pipe_connect_ncacn_np_smb_send(TALLOC_CTX *tmp_
remote rpc server */
conn->in.dest_host = s->io.binding->host;
conn->in.port = 0;
- conn->in.called_name = strupper_talloc(tmp_ctx, s->io.binding->host);
+ conn->in.called_name = strupper_talloc(mem_ctx, s->io.binding->host);
conn->in.service = "IPC$";
conn->in.service_type = NULL;
conn->in.fallback_to_anonymous = False;
@@ -141,7 +141,7 @@ struct composite_context *dcerpc_pipe_connect_ncacn_np_smb_send(TALLOC_CTX *tmp_
if (s->io.binding->flags & DCERPC_SCHANNEL) {
struct cli_credentials *anon_creds;
- anon_creds = cli_credentials_init(tmp_ctx);
+ anon_creds = cli_credentials_init(mem_ctx);
if (!anon_creds) {
composite_error(c, NT_STATUS_NO_MEMORY);
goto done;
@@ -185,11 +185,11 @@ NTSTATUS dcerpc_pipe_connect_ncacn_np_smb_recv(struct composite_context *c)
/*
Sync version of a rpc connection to a rpc pipe on SMB
*/
-NTSTATUS dcerpc_pipe_connect_ncacn_np_smb(TALLOC_CTX *tmp_ctx,
+NTSTATUS dcerpc_pipe_connect_ncacn_np_smb(TALLOC_CTX *mem_ctx,
struct dcerpc_pipe_connect *io)
{
struct composite_context *c;
- c = dcerpc_pipe_connect_ncacn_np_smb_send(tmp_ctx, io);
+ c = dcerpc_pipe_connect_ncacn_np_smb_send(mem_ctx, io);
return dcerpc_pipe_connect_ncacn_np_smb_recv(c);
}