1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

s4:libcli/wrepl: return NT_STATUS_CONNECTION_DISCONNECTED

We should return the same in all places.

metze
This commit is contained in:
Stefan Metzmacher 2011-09-14 17:57:37 +02:00
parent af2e107d49
commit e6a2affe89

View File

@ -359,7 +359,7 @@ struct tevent_req *wrepl_request_send(TALLOC_CTX *mem_ctx,
}
if (wrepl_socket->stream == NULL) {
tevent_req_nterror(req, NT_STATUS_INVALID_CONNECTION);
tevent_req_nterror(req, NT_STATUS_CONNECTION_DISCONNECTED);
return tevent_req_post(req, ev);
}
@ -408,7 +408,7 @@ static void wrepl_request_trigger(struct tevent_req *req,
struct tevent_req *subreq;
if (state->caller.wrepl_socket->stream == NULL) {
tevent_req_nterror(req, NT_STATUS_INVALID_CONNECTION);
tevent_req_nterror(req, NT_STATUS_CONNECTION_DISCONNECTED);
return;
}
@ -450,7 +450,7 @@ static void wrepl_request_writev_done(struct tevent_req *subreq)
}
if (state->caller.wrepl_socket->stream == NULL) {
tevent_req_nterror(req, NT_STATUS_INVALID_CONNECTION);
tevent_req_nterror(req, NT_STATUS_CONNECTION_DISCONNECTED);
return;
}