From 08282aec603e84220ad9c2396154843118855869 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 30 Jul 2006 17:43:58 +0000 Subject: r17321: give better error codes metze (This used to be commit 8e87b79ce73931376b5852bc734f982f57aad4f3) --- source4/librpc/rpc/dcerpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/librpc/rpc') diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 70c60b100a..244ac9fdfa 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -576,7 +576,7 @@ static void dcerpc_bind_recv_handler(struct rpc_request *req, if ((pkt->ptype != DCERPC_PKT_BIND_ACK) || (pkt->u.bind_ack.num_results == 0) || (pkt->u.bind_ack.ctx_list[0].result != 0)) { - composite_error(c, NT_STATUS_UNSUCCESSFUL); + composite_error(c, NT_STATUS_NET_WRITE_FAULT); return; } @@ -1529,7 +1529,7 @@ static void dcerpc_alter_recv_handler(struct rpc_request *req, if (pkt->ptype != DCERPC_PKT_ALTER_RESP || pkt->u.alter_resp.num_results == 0 || pkt->u.alter_resp.ctx_list[0].result != 0) { - composite_error(c, NT_STATUS_UNSUCCESSFUL); + composite_error(c, NT_STATUS_NET_WRITE_FAULT); return; } -- cgit