summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-02-04 09:07:36 +0100
committerKai Blin <kai@samba.org>2009-02-09 08:36:08 +0100
commitc3b9b6c8aae1dea8df5fc7bff873a015aaa92d6e (patch)
tree34feeb6f13f8b5b058b9df92a9cb2e2ec8e51050 /source3/rpc_server
parent3a4c8cd492b9e8874724dff1d0fc0207cb74036b (diff)
downloadsamba-c3b9b6c8aae1dea8df5fc7bff873a015aaa92d6e.tar.gz
samba-c3b9b6c8aae1dea8df5fc7bff873a015aaa92d6e.tar.bz2
samba-c3b9b6c8aae1dea8df5fc7bff873a015aaa92d6e.zip
async_sock: Use unix errnos instead of NTSTATUS
This also switches wb_reqtrans to use wbcErr instead of NTSTATUS as it would be pointless to convert to errno first and to wbcErr later.
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index 04369d1dd2..6dfe7a0911 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -1220,11 +1220,12 @@ static void np_write_done(struct async_req *subreq)
{
struct async_req *req = talloc_get_type_abort(
subreq->async.priv, struct async_req);
- NTSTATUS status;
+ int err;
+ ssize_t ret;
- status = sendall_recv(subreq);
- if (!NT_STATUS_IS_OK(status)) {
- async_req_nterror(req, status);
+ ret = sendall_recv(subreq, &err);
+ if (ret < 0) {
+ async_req_nterror(req, map_nt_error_from_unix(err));
return;
}
async_req_done(req);