summaryrefslogtreecommitdiff
path: root/source4/librpc
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
commitafabf12251c79d741b6c7cc116b57082e168ad0a (patch)
treee9240e71aa74d7b429667fccebe3e61e117de734 /source4/librpc
parentcd02281c2d28a51580021480739e2b9dbf9b56a1 (diff)
downloadsamba-afabf12251c79d741b6c7cc116b57082e168ad0a.tar.gz
samba-afabf12251c79d741b6c7cc116b57082e168ad0a.tar.bz2
samba-afabf12251c79d741b6c7cc116b57082e168ad0a.zip
s4:librpc/rpc: return NT_STATUS_CONNECTION_DISCONNECTED
We should return the same in all places. metze
Diffstat (limited to 'source4/librpc')
-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 77b1d29236..caf421ba87 100644
--- a/source4/librpc/rpc/dcerpc.c
+++ b/source4/librpc/rpc/dcerpc.c
@@ -221,7 +221,7 @@ static struct tevent_req *dcerpc_bh_raw_call_send(TALLOC_CTX *mem_ctx,
ok = dcerpc_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);
}
@@ -313,7 +313,7 @@ static struct tevent_req *dcerpc_bh_disconnect_send(TALLOC_CTX *mem_ctx,
ok = dcerpc_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);
}