summaryrefslogtreecommitdiffstats
path: root/source3/smbd/smb2_read.c
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2013-12-05 16:20:26 -0700
committerJeremy Allison <jra@samba.org>2013-12-05 18:22:16 -0800
commiteadb2a54d1733a482999eb770182156dad1e184d (patch)
treedfd30e14069f1e4e9718537dc5bd969d67739298 /source3/smbd/smb2_read.c
parentdfef0701c398982226dde8a8e15ff97bba0fef53 (diff)
downloadsamba-eadb2a54d1733a482999eb770182156dad1e184d.tar.gz
samba-eadb2a54d1733a482999eb770182156dad1e184d.tar.xz
samba-eadb2a54d1733a482999eb770182156dad1e184d.zip
s3: Return correct error code from SMB2 AIO read failure
This is similar to commit 27e20d5d60ea8aa526bcb7c2dfc18dd2de0bb97b which fixed the same case for SMB2 writes: When sending the AIO read fails, return the real error instead of mapping it to NT_STATUS_FILE_CLOSED. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/smb2_read.c')
-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 d6d3d90878..6478326ac0 100644
--- a/source3/smbd/smb2_read.c
+++ b/source3/smbd/smb2_read.c
@@ -464,7 +464,7 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
if (!NT_STATUS_EQUAL(status, NT_STATUS_RETRY)) {
/* Real error in setting up aio. Fail. */
- tevent_req_nterror(req, NT_STATUS_FILE_CLOSED);
+ tevent_req_nterror(req, status);
return tevent_req_post(req, ev);
}