From e6a2affe893e28aaf3da5a16d120034669b4dc37 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 14 Sep 2011 17:57:37 +0200 Subject: s4:libcli/wrepl: return NT_STATUS_CONNECTION_DISCONNECTED We should return the same in all places. metze --- source4/libcli/wrepl/winsrepl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/libcli/wrepl/winsrepl.c') diff --git a/source4/libcli/wrepl/winsrepl.c b/source4/libcli/wrepl/winsrepl.c index c7f1ad07cb..eab7430e42 100644 --- a/source4/libcli/wrepl/winsrepl.c +++ b/source4/libcli/wrepl/winsrepl.c @@ -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; } -- cgit