svn commit: samba r16868 - in branches/SAMBA_4_0/source/ntvfs: .

metze at samba.org metze at samba.org
Sat Jul 8 07:37:05 GMT 2006


Author: metze
Date: 2006-07-08 07:37:05 +0000 (Sat, 08 Jul 2006)
New Revision: 16868

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

Log:
init some uninitialized values
(found by valgrind)

metze
Modified:
   branches/SAMBA_4_0/source/ntvfs/ntvfs_generic.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/ntvfs_generic.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/ntvfs_generic.c	2006-07-07 19:34:54 UTC (rev 16867)
+++ branches/SAMBA_4_0/source/ntvfs/ntvfs_generic.c	2006-07-08 07:37:05 UTC (rev 16868)
@@ -1176,6 +1176,7 @@
 		break;
 	case RAW_READ_SMB2:
 		rd->smb2.out.data.length= rd2->generic.out.nread;
+		rd->smb2.out.unknown1	= 0;
 		break;
 	default:
 		return NT_STATUS_INVALID_LEVEL;
@@ -1307,11 +1308,13 @@
 	case RAW_CLOSE_SPLCLOSE:
 		cl2->generic.level		= RAW_CLOSE_CLOSE;
 		cl2->generic.in.file.ntvfs	= cl->splclose.in.file.ntvfs;
+		cl2->generic.in.write_time	= 0;
 		break;
 
 	case RAW_CLOSE_SMB2:
 		cl2->generic.level		= RAW_CLOSE_CLOSE;
 		cl2->generic.in.file.ntvfs	= cl->smb2.in.file.ntvfs;
+		cl2->generic.in.write_time	= 0;
 		/* SMB2 Close has output parameter, but we just zero them */
 		ZERO_STRUCT(cl->smb2.out);
 		break;



More information about the samba-cvs mailing list