svn commit: samba r21533 - in branches/SAMBA_4_0/source/torture/basic: .

metze at samba.org metze at samba.org
Sun Feb 25 16:56:53 GMT 2007


Author: metze
Date: 2007-02-25 16:56:53 +0000 (Sun, 25 Feb 2007)
New Revision: 21533

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21533

Log:
try to get rid of the valgrind warnings of uninitialized memory
passed to a socket

metze
Modified:
   branches/SAMBA_4_0/source/torture/basic/aliases.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/basic/aliases.c
===================================================================
--- branches/SAMBA_4_0/source/torture/basic/aliases.c	2007-02-25 09:55:57 UTC (rev 21532)
+++ branches/SAMBA_4_0/source/torture/basic/aliases.c	2007-02-25 16:56:53 UTC (rev 21533)
@@ -151,6 +151,7 @@
 	const char *fname = "\\qpathinfo_aliases.txt";
 	int fnum;
 
+	ZERO_STRUCT(t2);
 	t2.in.max_param = 2;
 	t2.in.max_data = smb_raw_max_trans_data(cli->tree, 2);
 	t2.in.max_setup = 0;
@@ -160,7 +161,6 @@
 	t2.in.setup = &setup;
 	t2.in.params = data_blob_talloc(tctx, NULL, 6);
 	t2.in.data = data_blob(NULL, 0);
-	ZERO_STRUCT(t2.out);
 
 	smbcli_unlink(cli->tree, fname);
 	fnum = create_complex_file(cli, cli, fname);



More information about the samba-cvs mailing list