summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ));