mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3:rpc_client: return NT_STATUS_CONNECTION_DISCONNECTED
We should return the same in all places and don't mix NT_STATUS_INVALID_CONNECTION and NT_STATUS_CONNECTION_INVALID. metze
This commit is contained in:
parent
a6e8167e4a
commit
cc5f973884
@ -2033,7 +2033,7 @@ static struct tevent_req *rpccli_bh_raw_call_send(TALLOC_CTX *mem_ctx,
|
||||
|
||||
ok = rpccli_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);
|
||||
}
|
||||
|
||||
@ -2116,7 +2116,7 @@ static struct tevent_req *rpccli_bh_disconnect_send(TALLOC_CTX *mem_ctx,
|
||||
|
||||
ok = rpccli_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);
|
||||
}
|
||||
|
||||
|
@ -186,7 +186,7 @@ static struct tevent_req *rpc_tstream_read_send(TALLOC_CTX *mem_ctx,
|
||||
return NULL;
|
||||
}
|
||||
if (!rpc_tstream_is_connected(transp)) {
|
||||
tevent_req_nterror(req, NT_STATUS_CONNECTION_INVALID);
|
||||
tevent_req_nterror(req, NT_STATUS_CONNECTION_DISCONNECTED);
|
||||
return tevent_req_post(req, ev);
|
||||
}
|
||||
state->transp = transp;
|
||||
@ -270,7 +270,7 @@ static struct tevent_req *rpc_tstream_write_send(TALLOC_CTX *mem_ctx,
|
||||
return NULL;
|
||||
}
|
||||
if (!rpc_tstream_is_connected(transp)) {
|
||||
tevent_req_nterror(req, NT_STATUS_CONNECTION_INVALID);
|
||||
tevent_req_nterror(req, NT_STATUS_CONNECTION_DISCONNECTED);
|
||||
return tevent_req_post(req, ev);
|
||||
}
|
||||
state->ev = ev;
|
||||
@ -366,7 +366,7 @@ static struct tevent_req *rpc_tstream_trans_send(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
|
||||
if (!rpc_tstream_is_connected(transp)) {
|
||||
tevent_req_nterror(req, NT_STATUS_CONNECTION_INVALID);
|
||||
tevent_req_nterror(req, NT_STATUS_CONNECTION_DISCONNECTED);
|
||||
return tevent_req_post(req, ev);
|
||||
}
|
||||
state->ev = ev;
|
||||
|
Loading…
x
Reference in New Issue
Block a user