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));
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;