summaryrefslogtreecommitdiffstats
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
parentcd02281c2d28a51580021480739e2b9dbf9b56a1 (diff)
downloadsamba-afabf12251c79d741b6c7cc116b57082e168ad0a.tar.gz
samba-afabf12251c79d741b6c7cc116b57082e168ad0a.tar.xz
samba-afabf12251c79d741b6c7cc116b57082e168ad0a.zip
s4:librpc/rpc: return NT_STATUS_CONNECTION_DISCONNECTED
We should return the same in all places. metze
-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 77b1d292362..caf421ba87d 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);
}