Skip to content

Commit

Permalink
s3:smbd: map nterror on smb2_flush errorpath
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Volker Lendecke <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
Anton Nefedov via samba-technical authored and jrasamba committed Mar 16, 2018
1 parent 1957bf1 commit 9862312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source3/smbd/smb2_flush.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9862312

Please sign in to comment.