correct init for vfs.conn, thanks Stefan
authorSimo Sorce <idra@samba.org>
Wed, 19 Feb 2003 22:26:19 +0000 (22:26 +0000)
committerSimo Sorce <idra@samba.org>
Wed, 19 Feb 2003 22:26:19 +0000 (22:26 +0000)
(This used to be commit 162683d2b5c15016fe1423876589573b48b9f5a6)

source3/torture/vfstest.c

index fef189844bc7867672e3cfa183c0042535dec9dc..fd1f83109ea5e9a2e6245c1557d459876e3c1e55 100644 (file)
@@ -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;