summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Nefedov via samba-technical <samba-technical@lists.samba.org>2018-03-15 14:38:41 +0300
committerKarolin Seeger <kseeger@samba.org>2018-04-06 08:21:12 +0200
commitccda6d9b8c893d6432ac92c5c542cbde6039ad74 (patch)
tree310f2a391e5d832e716b0c8ca4bb2aee6cb22ab0
parentf66a35b8beb8101a0064dfd58e494ec2f2fa40fd (diff)
downloadsamba-ccda6d9b8c893d6432ac92c5c542cbde6039ad74.tar.gz
s3:smbd: map nterror on smb2_flush errorpath
smbd_smb2_flush_recv() expects nterror in tevent_req, and otherwise aborts in tevent_req_is_nterror() BUG: https://bugzilla.samba.org/show_bug.cgi?id=13338 Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 98623129446672521b7fa41d3457b8ce95db828c)
-rw-r--r--source3/smbd/smb2_flush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_flush.c b/source3/smbd/smb2_flush.c
index d077c62c403..51584ca876f 100644
--- a/source3/smbd/smb2_flush.c
+++ b/source3/smbd/smb2_flush.c
@@ -198,7 +198,7 @@ static void smbd_smb2_flush_done(struct tevent_req *subreq)
ret = SMB_VFS_FSYNC_RECV(subreq, &vfs_aio_state);
TALLOC_FREE(subreq);
if (ret == -1) {
- tevent_req_error(req, vfs_aio_state.error);
+ tevent_req_nterror(req, map_nt_error_from_unix(vfs_aio_state.error));
return;
}
tevent_req_done(req);