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

tridge at samba.org tridge at samba.org
Sun Nov 7 10:00:33 GMT 2004


Author: tridge
Date: 2004-11-07 10:00:32 +0000 (Sun, 07 Nov 2004)
New Revision: 3591

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

Log:
to get a bit more useful info from valgrind I'm disabling the
deliberate over-allocation of request structures in smbd and
libcli/raw code for now.


Modified:
   branches/SAMBA_4_0/source/libcli/raw/rawrequest.c
   branches/SAMBA_4_0/source/smb_server/request.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/raw/rawrequest.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/raw/rawrequest.c	2004-11-07 01:11:11 UTC (rev 3590)
+++ branches/SAMBA_4_0/source/libcli/raw/rawrequest.c	2004-11-07 10:00:32 UTC (rev 3591)
@@ -28,7 +28,7 @@
 #include "dlinklist.h"
 
 /* we over allocate the data buffer to prevent too many realloc calls */
-#define REQ_OVER_ALLOCATION 256
+#define REQ_OVER_ALLOCATION 0
 
 /* assume that a character will not consume more than 3 bytes per char */
 #define MAX_BYTES_PER_CHAR 3

Modified: branches/SAMBA_4_0/source/smb_server/request.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/request.c	2004-11-07 01:11:11 UTC (rev 3590)
+++ branches/SAMBA_4_0/source/smb_server/request.c	2004-11-07 10:00:32 UTC (rev 3591)
@@ -29,7 +29,7 @@
 
 
 /* we over allocate the data buffer to prevent too many realloc calls */
-#define REQ_OVER_ALLOCATION 256
+#define REQ_OVER_ALLOCATION 0
 
 /* destroy a request structure */
 void req_destroy(struct smbsrv_request *req)



More information about the samba-cvs mailing list