From 4f2058175e8763a7ed4066f16e934779506d7035 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 24 Sep 2004 07:28:16 +0000 Subject: r2591: fixed two errors in simple backend found with valgrind (This used to be commit 1730882b9d2ecff1b65e5fc85961edb300a9ce17) --- source4/ntvfs/simple/vfs_simple.c | 2 ++ 1 file changed, 2 insertions(+) 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)) { -- cgit