Author: mimir
Date: 2006-01-09 21:22:27 +0000 (Mon, 09 Jan 2006)
New Revision: 12800

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12800

Log:
Replace tmp_ctx with mem_ctx to make variables name more
consistent along the file.


rafal


Modified:
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_connect.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_connect.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_connect.c       2006-01-09 
20:30:44 UTC (rev 12799)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_connect.c       2006-01-09 
21:22:27 UTC (rev 12800)
@@ -99,7 +99,7 @@
   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 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 @@
           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 @@
        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 @@
 /*
   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);
 }
 

Reply via email to