r2591: fixed two errors in simple backend found with valgrind
authorAndrew Tridgell <tridge@samba.org>
Fri, 24 Sep 2004 07:28:16 +0000 (07:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:10 +0000 (12:59 -0500)
(This used to be commit 1730882b9d2ecff1b65e5fc85961edb300a9ce17)

source4/ntvfs/simple/vfs_simple.c

index 5bdec64f2bbdcbcb5f0410230fbdbe6aa2f1bac5..5b2fe9df56fe45f001b02f5a775977277dcb77f6 100644 (file)
@@ -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)) {