diff options
author | Volker Lendecke <vl@samba.org> | 2008-04-28 10:31:49 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-05-05 11:23:13 +0200 |
commit | 559180f7d30606d1999399d954ceedc798c669a4 (patch) | |
tree | 06fe1b8a0c8aa84496d1eb65f1ff1973b57f989f /source/smbd/vfs.c | |
parent | 48fd7b3635137e2fe77c0b0413965869194421ff (diff) | |
download | samba-559180f7d30606d1999399d954ceedc798c669a4.tar.gz samba-559180f7d30606d1999399d954ceedc798c669a4.tar.xz samba-559180f7d30606d1999399d954ceedc798c669a4.zip |
Remove connection_struct->mem_ctx, connection_struct is its own parent
Diffstat (limited to 'source/smbd/vfs.c')
-rw-r--r-- | source/smbd/vfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/vfs.c b/source/smbd/vfs.c index 33a3a43aa47..1e137dd9089 100644 --- a/source/smbd/vfs.c +++ b/source/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; } |