svn commit: samba r16871 - in branches/SAMBA_4_0/source: libcli/raw smb_server

metze at samba.org metze at samba.org
Sat Jul 8 08:18:57 GMT 2006


Author: metze
Date: 2006-07-08 08:18:55 +0000 (Sat, 08 Jul 2006)
New Revision: 16871

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

Log:
zero padding bytes
(found by valgrind)

metze
Modified:
   branches/SAMBA_4_0/source/libcli/raw/rawfileinfo.c
   branches/SAMBA_4_0/source/smb_server/blob.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/raw/rawfileinfo.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/raw/rawfileinfo.c	2006-07-08 07:42:25 UTC (rev 16870)
+++ branches/SAMBA_4_0/source/libcli/raw/rawfileinfo.c	2006-07-08 08:18:55 UTC (rev 16871)
@@ -234,6 +234,7 @@
 		parms->all_info2.out.nlink          = IVAL(blob->data, 0x38);
 		parms->all_info2.out.delete_pending = CVAL(blob->data, 0x3C);
 		parms->all_info2.out.directory      = CVAL(blob->data, 0x3D);
+		/* 0x3E-0x3F padding */
 		parms->all_info2.out.file_id        = BVAL(blob->data, 0x40);
 		parms->all_info2.out.ea_size        = IVAL(blob->data, 0x48);
 		parms->all_info2.out.access_mask    = IVAL(blob->data, 0x4C);

Modified: branches/SAMBA_4_0/source/smb_server/blob.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/blob.c	2006-07-08 07:42:25 UTC (rev 16870)
+++ branches/SAMBA_4_0/source/smb_server/blob.c	2006-07-08 08:18:55 UTC (rev 16871)
@@ -482,6 +482,7 @@
 		SIVAL(blob->data,       0x38, st->all_info2.out.nlink);
 		SCVAL(blob->data,       0x3C, st->all_info2.out.delete_pending);
 		SCVAL(blob->data,       0x3D, st->all_info2.out.directory);
+		SSVAL(blob->data,       0x3E, 0); /* padding */
 		SBVAL(blob->data,	0x40, st->all_info2.out.file_id);
 		SIVAL(blob->data,       0x48, st->all_info2.out.ea_size);
 		SIVAL(blob->data,	0x4C, st->all_info2.out.access_mask);



More information about the samba-cvs mailing list