svn commit: samba r24468 - in branches/SAMBA_3_2/source/smbd: .

jra at samba.org jra at samba.org
Wed Aug 15 19:43:26 GMT 2007


Author: jra
Date: 2007-08-15 19:43:26 +0000 (Wed, 15 Aug 2007)
New Revision: 24468

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

Log:
Don't forget the +4 for length :-).
Jeremy.

Modified:
   branches/SAMBA_3_2/source/smbd/process.c


Changeset:
Modified: branches/SAMBA_3_2/source/smbd/process.c
===================================================================
--- branches/SAMBA_3_2/source/smbd/process.c	2007-08-15 19:25:38 UTC (rev 24467)
+++ branches/SAMBA_3_2/source/smbd/process.c	2007-08-15 19:43:26 UTC (rev 24468)
@@ -57,8 +57,8 @@
 
 void init_smb_request(struct smb_request *req, const uint8 *inbuf)
 {
-	size_t req_size = smb_len(inbuf);
-	/* Ensure we have at smb_size request. */
+	size_t req_size = smb_len(inbuf) + 4;
+	/* Ensure we have at least smb_size bytes. */
 	if (req_size < smb_size) {
 		DEBUG(0,("init_smb_request: invalid request size %u\n",
 			(unsigned int)req_size ));



More information about the samba-cvs mailing list