summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-05-05 09:39:31 -0700
committerJeremy Allison <jra@samba.org>2010-05-05 09:39:31 -0700
commit44e9a90b512cd9eeaaa59fa1756a235621819f88 (patch)
treefc064c87a96bf2ad79d30ba4174c3ffeb62db3b1
parent8528e347cb1f16a195bfb66b740d16d2421b07fa (diff)
downloadsamba-44e9a90b512cd9eeaaa59fa1756a235621819f88.tar.gz
samba-44e9a90b512cd9eeaaa59fa1756a235621819f88.tar.bz2
samba-44e9a90b512cd9eeaaa59fa1756a235621819f88.zip
Start to pass the SMB2 read torture tests.
Jeremy.
-rw-r--r--source3/smbd/smb2_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c
index aa2805d66a..a858758aee 100644
--- a/source3/smbd/smb2_read.c
+++ b/source3/smbd/smb2_read.c
@@ -289,7 +289,7 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
tevent_req_nterror(req, NT_STATUS_ACCESS_DENIED);
return tevent_req_post(req, ev);
}
- if (nread == 0 && in_length != 0) {
+ if (nread == 0 && (in_length != 0 || in_minimum != 0)) {
DEBUG(5,("smbd_smb2_read: read_file[%s] end of file\n",
fsp_str_dbg(fsp)));
tevent_req_nterror(req, NT_STATUS_END_OF_FILE);