summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2003-02-19 22:26:19 +0000
committerSimo Sorce <idra@samba.org>2003-02-19 22:26:19 +0000
commit29b94266df3df046bc545a466a9b505edd8b7ca8 (patch)
treeb5d14823ac1b8c73e6dcd9b8da5711240e5afbd5 /source3/torture
parentde88e704ceb74e4811f14845556d65449f9d592b (diff)
downloadsamba-29b94266df3df046bc545a466a9b505edd8b7ca8.tar.gz
samba-29b94266df3df046bc545a466a9b505edd8b7ca8.tar.bz2
samba-29b94266df3df046bc545a466a9b505edd8b7ca8.zip
correct init for vfs.conn, thanks Stefan
(This used to be commit 162683d2b5c15016fe1423876589573b48b9f5a6)
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/vfstest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c
index fef189844b..fd1f83109e 100644
--- a/source3/torture/vfstest.c
+++ b/source3/torture/vfstest.c
@@ -546,7 +546,8 @@ int main(int argc, char *argv[])
}
/* some basic initialization stuff */
- vfs.conn = (struct connection_struct *)malloc(sizeof(struct connection_struct));
+ conn_init();
+ vfs.conn = conn_new();
vfs.conn->user = "vfstest";
for (i=0; i < 1024; i++)
vfs.files[i] = NULL;