summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-18 08:12:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:58:41 -0500
commit027208806feaae02822aa22af01a09d1d044551b (patch)
treeeba5d2a002ed4427666a7920f45ce65272e7e8ba /source4/smb_server/smb
parent881f32a0915f7e19cd97f6412e111b397e27297a (diff)
downloadsamba-027208806feaae02822aa22af01a09d1d044551b.tar.gz
samba-027208806feaae02822aa22af01a09d1d044551b.tar.bz2
samba-027208806feaae02822aa22af01a09d1d044551b.zip
r14538: ok, I have better used make valgrindtest my self...
the 3 bytes for WordCount and ByteCount are included in MIN_SMB_SIZE... metze (This used to be commit 4ff3fb35e88643a4637bfca032a6505f9dce3843)
Diffstat (limited to 'source4/smb_server/smb')
-rw-r--r--source4/smb_server/smb/request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smb_server/smb/request.c b/source4/smb_server/smb/request.c
index a08a2f6c20..1c09d5ccb2 100644
--- a/source4/smb_server/smb/request.c
+++ b/source4/smb_server/smb/request.c
@@ -105,7 +105,7 @@ void smbsrv_setup_reply(struct smbsrv_request *req, uint_t wct, uint_t buflen)
return;
}
- req->out.size = NBT_HDR_SIZE + MIN_SMB_SIZE + 1 + VWV(wct) + 2 + buflen;
+ req->out.size = NBT_HDR_SIZE + MIN_SMB_SIZE + VWV(wct) + buflen;
/* over allocate by a small amount */
req->out.allocated = req->out.size + REQ_OVER_ALLOCATION;