From ed70bc0d8eef17af75ffcafd0c4b90ea403002fc Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 15 Aug 2007 19:43:26 +0000 Subject: r24468: Don't forget the +4 for length :-). Jeremy. (This used to be commit 4d01e0b7443aa4e4d450d705df5762d801172809) --- source3/smbd/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd') 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 )); -- cgit