summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-07-15 19:23:12 +0200
committerStefan Metzmacher <metze@samba.org>2009-07-15 19:58:34 +0200
commit64ee4458cf8c8fb1dec5334cebbe63cfb0045ada (patch)
tree671105c0853ac0790edbf28aff7485ff2ecd03ef /source4/ntvfs
parent5240b10eaa1f19dcf2dbc31e5e1f8868716bbc69 (diff)
downloadsamba-64ee4458cf8c8fb1dec5334cebbe63cfb0045ada.tar.gz
samba-64ee4458cf8c8fb1dec5334cebbe63cfb0045ada.tar.bz2
samba-64ee4458cf8c8fb1dec5334cebbe63cfb0045ada.zip
s4:ntvfs/ipc: replace unnesessary talloc_reference() by a simple talloc_strdup()
metze
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/ipc/vfs_ipc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ntvfs/ipc/vfs_ipc.c b/source4/ntvfs/ipc/vfs_ipc.c
index 20b00f24e3..95ad1c51fb 100644
--- a/source4/ntvfs/ipc/vfs_ipc.c
+++ b/source4/ntvfs/ipc/vfs_ipc.c
@@ -258,7 +258,8 @@ static NTSTATUS ipc_open_generic(struct ntvfs_module_context *ntvfs,
one of the interfaces attached to this pipe endpoint.
*/
ep_description->transport = NCACN_NP;
- ep_description->endpoint = talloc_reference(ep_description, p->pipe_name);
+ ep_description->endpoint = talloc_strdup(ep_description, p->pipe_name);
+ NT_STATUS_HAVE_NO_MEMORY(ep_description->endpoint);
/* The session info is refcount-increased in the
* dcesrv_endpoint_search_connect() function