source3/rpc_server/rpc_ncacn_np.c: tmp_mem
authorStefan Metzmacher <metze@samba.org>
Thu, 25 Sep 2014 19:51:05 +0000 (21:51 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 10:43:20 +0000 (12:43 +0200)
source3/rpc_server/rpc_ncacn_np.c

index c45e9cb3a2b539e3a40cf87d8a827bde46eb8918..2350a22bd68273652e3a22f7679ba250a3cc4ae4 100644 (file)
@@ -216,7 +216,7 @@ struct pipes_struct *make_internal_rpc_pipe_p(TALLOC_CTX *mem_ctx,
                return NULL;
        }
 
-       pipe_name = dcerpc_default_transport_endpoint(mem_ctx, NCACN_NP, table);
+       pipe_name = dcerpc_default_transport_endpoint(talloc_tos(), NCACN_NP, table);
 
        DEBUG(4,("Create pipe requested %s\n", pipe_name));
 
@@ -1093,7 +1093,7 @@ NTSTATUS rpc_pipe_open_interface(TALLOC_CTX *mem_ctx,
                return NT_STATUS_NO_MEMORY;
        }
 
-       pipe_name = dcerpc_default_transport_endpoint(mem_ctx, NCACN_NP, table);
+       pipe_name = dcerpc_default_transport_endpoint(tmp_ctx, NCACN_NP, table);
        if (pipe_name == NULL) {
                DEBUG(1, ("Unable to find pipe name to forward %s to.\n", table->name));
                status = NT_STATUS_INVALID_PARAMETER;