summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-30 17:43:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:15:11 -0500
commit08282aec603e84220ad9c2396154843118855869 (patch)
treea7e7b80d3a07f0b441eb5a7099533a5bf3cd1930 /source4
parent7847e7b644150f91cf0751516682b4bc69d7c5f3 (diff)
downloadsamba-08282aec603e84220ad9c2396154843118855869.tar.gz
samba-08282aec603e84220ad9c2396154843118855869.tar.bz2
samba-08282aec603e84220ad9c2396154843118855869.zip
r17321: give better error codes
metze (This used to be commit 8e87b79ce73931376b5852bc734f982f57aad4f3)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/rpc/dcerpc.c4
1 files changed, 2 insertions, 2 deletions
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;
}