diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-03-04 14:07:26 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-04-01 09:08:06 +0200 |
commit | e6b365a56582999dd6ef856fc00e777a82e2b4ea (patch) | |
tree | b63483db63e666ef3c808201f96d8392b0f195dc | |
parent | 9da034e1d453ea9136d13a4036862317ec2526c1 (diff) | |
download | samba-e6b365a56582999dd6ef856fc00e777a82e2b4ea.tar.gz |
s3:smbd: fix lockread numtoread calculation to match reply_outbuf() arguments.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 3dac00b568613f5a1322883237e40b98ddd1d71d)
-rw-r--r-- | source3/smbd/reply.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index f293b69f0b2..e07b40bbe36 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -3499,7 +3499,7 @@ void reply_lockread(struct smb_request *req) numtoread = SVAL(req->vwv+1, 0); startpos = IVAL_TO_SMB_OFF_T(req->vwv+2, 0); - numtoread = MIN(BUFFER_SIZE - (smb_size + 3*2 + 3), numtoread); + numtoread = MIN(BUFFER_SIZE - (smb_size + 5*2 + 3), numtoread); reply_outbuf(req, 5, numtoread + 3); |