summaryrefslogtreecommitdiff
path: root/source4/ntvfs/simple
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-04-07 11:46:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:09 -0500
commit2f4bb85be50b56acacd822f08d0fde19daff2d90 (patch)
tree4937db0babf6812957ff3483ab5d224d4c8f5b30 /source4/ntvfs/simple
parenta8dfb92795c159dd9c8478a19ca0e0a650850bc6 (diff)
downloadsamba-2f4bb85be50b56acacd822f08d0fde19daff2d90.tar.gz
samba-2f4bb85be50b56acacd822f08d0fde19daff2d90.tar.bz2
samba-2f4bb85be50b56acacd822f08d0fde19daff2d90.zip
r114: - remember to initialise open_files
- use talloc_p when possible (This used to be commit db7f7ac165ded15f0b8157eb899ea6828a033da9)
Diffstat (limited to 'source4/ntvfs/simple')
-rw-r--r--source4/ntvfs/simple/vfs_simple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ntvfs/simple/vfs_simple.c b/source4/ntvfs/simple/vfs_simple.c
index 4802c11d6a..c2ad7d7aa4 100644
--- a/source4/ntvfs/simple/vfs_simple.c
+++ b/source4/ntvfs/simple/vfs_simple.c
@@ -47,12 +47,13 @@ static NTSTATUS svfs_connect(struct request_context *req, const char *sharename)
struct tcon_context *conn = req->conn;
struct svfs_private *private;
- conn->ntvfs_private = talloc(conn->mem_ctx, sizeof(struct svfs_private));
+ conn->ntvfs_private = talloc_p(conn->mem_ctx, struct svfs_private);
private = conn->ntvfs_private;
private->next_search_handle = 0;
private->connectpath = talloc_strdup(conn->mem_ctx, lp_pathname(conn->service));
+ private->open_files = NULL;
/* the directory must exist */
if (stat(private->connectpath, &st) != 0 || !S_ISDIR(st.st_mode)) {