git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8528e34
)
Start to pass the SMB2 read torture tests.
author
Jeremy Allison
<jra@samba.org>
Wed, 5 May 2010 16:39:31 +0000
(09:39 -0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 5 May 2010 16:39:31 +0000
(09:39 -0700)
Jeremy.
source3/smbd/smb2_read.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_read.c
b/source3/smbd/smb2_read.c
index aa2805d66af1ef073c5d78441012348a0be9450c..a858758aee1825812bc1ae0bc337c548868e7949 100644
(file)
--- 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);