diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-03-04 14:07:26 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-03-05 10:06:24 -0800 |
commit | 3dac00b568613f5a1322883237e40b98ddd1d71d (patch) | |
tree | 1ce38a40f8bc3f0ccab70dd0a979b79e2c37c3b7 /source3/smbd/reply.c | |
parent | 2ec49cf57c88735be962b0681b487df5efe7ed6b (diff) | |
download | samba-3dac00b568613f5a1322883237e40b98ddd1d71d.tar.gz samba-3dac00b568613f5a1322883237e40b98ddd1d71d.tar.xz samba-3dac00b568613f5a1322883237e40b98ddd1d71d.zip |
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>
Diffstat (limited to 'source3/smbd/reply.c')
-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 3f3bbe185e..112c9e6b49 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -3490,7 +3490,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); |