summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-01-16 09:22:53 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-03-25 00:45:28 +0100
commitdbf37008e04ad999078aaf8eb2f13daece752fa1 (patch)
tree639b49ae6cf12badd4453f389d6594aabc4449be /source4/librpc
parentc2f731e324f613961a1d051b13b09a0d14a1f13a (diff)
downloadsamba-dbf37008e04ad999078aaf8eb2f13daece752fa1.tar.gz
s4:librpc/rpc: correctly map the fault code of alter context to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c
index 17371efd8a7..be9a44c1c9e 100644
--- a/source4/librpc/rpc/dcerpc.c
+++ b/source4/librpc/rpc/dcerpc.c
@@ -2224,7 +2224,8 @@ static void dcerpc_alter_context_recv_handler(struct rpc_request *subreq,
tevent_req_nterror(req, NT_STATUS_LOGON_FAILURE);
} else {
state->p->last_fault_code = pkt->u.fault.status;
- tevent_req_nterror(req, NT_STATUS_NET_WRITE_FAULT);
+ status = dcerpc_fault_to_nt_status(pkt->u.fault.status);
+ tevent_req_nterror(req, status);
}
return;
}