summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-26 10:39:21 +0100
committerVolker Lendecke <vl@samba.org>2008-02-02 11:03:23 +0100
commitb42a5d68a3ffd88fd60c64b6a75fe2d687d9c92d (patch)
treeb8e1b6e204742449977b1731649e99cfbd9da86a /source3/smbd
parent21e7344d2f45416ea996f88be72de1a923c0ee9c (diff)
downloadsamba-b42a5d68a3ffd88fd60c64b6a75fe2d687d9c92d.tar.gz
samba-b42a5d68a3ffd88fd60c64b6a75fe2d687d9c92d.tar.bz2
samba-b42a5d68a3ffd88fd60c64b6a75fe2d687d9c92d.zip
Convert read_data() to NTSTATUS
(This used to be commit af40b71023f8c4a2133d996ea698c72b97624043)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index f371dde705..bced8ed984 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -3516,11 +3516,12 @@ void reply_writebraw(struct smb_request *req)
(int)tcount,(int)nwritten,(int)numtowrite));
}
- if (read_data(smbd_server_fd(), buf+4, numtowrite, NULL)
- != numtowrite ) {
+ status = read_data(smbd_server_fd(), buf+4, numtowrite);
+
+ if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("reply_writebraw: Oversize secondary write "
- "raw read failed (%s). Terminating\n",
- strerror(errno) ));
+ "raw read failed (%s). Terminating\n",
+ nt_errstr(status)));
exit_server_cleanly("secondary writebraw failed");
}