summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-24 07:28:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:10 -0500
commit4f2058175e8763a7ed4066f16e934779506d7035 (patch)
treeb738e12232fdc30c83f804900b7c35abda2c7005
parent7358fb62b8dcfb6714839c35230bbfeb35d83e08 (diff)
downloadsamba-4f2058175e8763a7ed4066f16e934779506d7035.tar.gz
samba-4f2058175e8763a7ed4066f16e934779506d7035.tar.bz2
samba-4f2058175e8763a7ed4066f16e934779506d7035.zip
r2591: fixed two errors in simple backend found with valgrind
(This used to be commit 1730882b9d2ecff1b65e5fc85961edb300a9ce17)
-rw-r--r--source4/ntvfs/simple/vfs_simple.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/ntvfs/simple/vfs_simple.c b/source4/ntvfs/simple/vfs_simple.c
index 5bdec64f2b..5b2fe9df56 100644
--- a/source4/ntvfs/simple/vfs_simple.c
+++ b/source4/ntvfs/simple/vfs_simple.c
@@ -72,6 +72,8 @@ static NTSTATUS svfs_connect(struct smbsrv_request *req, const char *sharename,
private->next_search_handle = 0;
private->connectpath = talloc_strdup(tcon, lp_pathname(tcon->service));
private->open_files = NULL;
+ private->ops = ntvfs_backend_byname("simple", NTVFS_DISK);
+ private->search = NULL;
/* the directory must exist */
if (stat(private->connectpath, &st) != 0 || !S_ISDIR(st.st_mode)) {