summaryrefslogtreecommitdiff
path: root/source3/smbd/vfs.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-04-28 10:31:49 +0200
committerVolker Lendecke <vl@samba.org>2008-05-05 11:23:13 +0200
commitd62563342e8c83d67dbcfb0c4b8e2ed886742006 (patch)
tree3eb93d7b3afde17ea6f11021eb1e1cc3e5c7a6f7 /source3/smbd/vfs.c
parent2c00ff5407d5b126c8d38ceb2bcc8626ee7c0c5d (diff)
downloadsamba-d62563342e8c83d67dbcfb0c4b8e2ed886742006.tar.gz
samba-d62563342e8c83d67dbcfb0c4b8e2ed886742006.tar.bz2
samba-d62563342e8c83d67dbcfb0c4b8e2ed886742006.zip
Remove connection_struct->mem_ctx, connection_struct is its own parent
(This used to be commit 559180f7d30606d1999399d954ceedc798c669a4)
Diffstat (limited to 'source3/smbd/vfs.c')
-rw-r--r--source3/smbd/vfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 33a3a43aa4..1e137dd908 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -177,7 +177,7 @@ bool vfs_init_custom(connection_struct *conn, const char *vfs_object)
goto fail;
}
- handle = TALLOC_ZERO_P(conn->mem_ctx,vfs_handle_struct);
+ handle = TALLOC_ZERO_P(conn, vfs_handle_struct);
if (!handle) {
DEBUG(0,("TALLOC_ZERO() failed!\n"));
goto fail;
@@ -185,7 +185,7 @@ bool vfs_init_custom(connection_struct *conn, const char *vfs_object)
memcpy(&handle->vfs_next, &conn->vfs, sizeof(struct vfs_ops));
handle->conn = conn;
if (module_param) {
- handle->param = talloc_strdup(conn->mem_ctx, module_param);
+ handle->param = talloc_strdup(conn, module_param);
}
DLIST_ADD(conn->vfs_handles, handle);
@@ -232,7 +232,7 @@ void *vfs_add_fsp_extension_notype(vfs_handle_struct *handle, files_struct *fsp,
}
ext = (struct vfs_fsp_data *)TALLOC_ZERO(
- handle->conn->mem_ctx, sizeof(struct vfs_fsp_data) + ext_size);
+ handle->conn, sizeof(struct vfs_fsp_data) + ext_size);
if (ext == NULL) {
return NULL;
}