summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-08-15 19:43:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:50 -0500
commited70bc0d8eef17af75ffcafd0c4b90ea403002fc (patch)
treecfcdb4e72dd810257a8f8919068fbdbe7d868efc /source3
parenta1f593cd737ccfaf48a98b954f38a541646cc5c7 (diff)
downloadsamba-ed70bc0d8eef17af75ffcafd0c4b90ea403002fc.tar.gz
samba-ed70bc0d8eef17af75ffcafd0c4b90ea403002fc.tar.bz2
samba-ed70bc0d8eef17af75ffcafd0c4b90ea403002fc.zip
r24468: Don't forget the +4 for length :-).
Jeremy. (This used to be commit 4d01e0b7443aa4e4d450d705df5762d801172809)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index ce04c4331f..bf3abf9758 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -57,8 +57,8 @@ extern int max_send;
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 ));