summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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;