[PATCH] fix connection_struct init in vfstest

Stefan (metze) Metzmacher metze at metzemix.de
Sat Nov 30 10:42:00 GMT 2002


HI Andrew,

here's the small fix to vfstest ...


metze
-----------------------------------------------------------------------------
Stefan "metze" Metzmacher <metze at metzemix.de>
-------------- next part --------------
diff -Npur --exclude=CVS --exclude=*.bak --exclude=*.o --exclude=*.po --exclude=.#* HEAD/source/torture/vfstest.c HEAD-fix/source/torture/vfstest.c
--- HEAD/source/torture/vfstest.c	Thu Sep  5 11:40:32 2002
+++ HEAD-fix/source/torture/vfstest.c	Sat Nov 30 09:29:22 2002
@@ -545,7 +545,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;


More information about the samba-technical mailing list