s4:ntvfs/ipc: replace unnesessary talloc_reference() by a simple talloc_strdup()
authorStefan Metzmacher <metze@samba.org>
Wed, 15 Jul 2009 17:23:12 +0000 (19:23 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 15 Jul 2009 17:58:34 +0000 (19:58 +0200)
metze

source4/ntvfs/ipc/vfs_ipc.c

index 20b00f24e3b42db817a7a9c72f6ca68ba5d287ab..95ad1c51fb33bafd5030abbbe13c7dce826e4f4c 100644 (file)
@@ -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