]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:libcli/wrepl: return NT_STATUS_CONNECTION_DISCONNECTED
authorStefan Metzmacher <metze@samba.org>
Wed, 14 Sep 2011 15:57:37 +0000 (17:57 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 14 Sep 2011 16:03:19 +0000 (18:03 +0200)
We should return the same in all places.

metze

source4/libcli/wrepl/winsrepl.c

index c7f1ad07cb8666884a995047f2539f456ee6a88e..eab7430e42b6bd29063ad0a7b1c8eb068347f3ab 100644 (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;
        }