summaryrefslogtreecommitdiff
path: root/source4/lib/messaging
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-14 17:57:37 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-14 18:03:18 +0200
commitaf2e107d494a992801e639301b368c70a0f2cc70 (patch)
tree472a6c6087a0a85f61aa7a094b7b60659d9a2a38 /source4/lib/messaging
parentafabf12251c79d741b6c7cc116b57082e168ad0a (diff)
downloadsamba-af2e107d494a992801e639301b368c70a0f2cc70.tar.gz
samba-af2e107d494a992801e639301b368c70a0f2cc70.tar.bz2
samba-af2e107d494a992801e639301b368c70a0f2cc70.zip
s4:lib/messaging: let irpc handles return NT_STATUS_CONNECTION_DISCONNECTED
We should return the same in all places. metze
Diffstat (limited to 'source4/lib/messaging')
-rw-r--r--source4/lib/messaging/messaging.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c
index 7e017a97f9..11ebf19b22 100644
--- a/source4/lib/messaging/messaging.c
+++ b/source4/lib/messaging/messaging.c
@@ -1099,7 +1099,7 @@ static struct tevent_req *irpc_bh_raw_call_send(TALLOC_CTX *mem_ctx,
ok = irpc_bh_is_connected(h);
if (!ok) {
- tevent_req_nterror(req, NT_STATUS_INVALID_CONNECTION);
+ tevent_req_nterror(req, NT_STATUS_CONNECTION_DISCONNECTED);
return tevent_req_post(req, ev);
}
@@ -1243,7 +1243,7 @@ static struct tevent_req *irpc_bh_disconnect_send(TALLOC_CTX *mem_ctx,
ok = irpc_bh_is_connected(h);
if (!ok) {
- tevent_req_nterror(req, NT_STATUS_INVALID_CONNECTION);
+ tevent_req_nterror(req, NT_STATUS_CONNECTION_DISCONNECTED);
return tevent_req_post(req, ev);
}