s3:winbindd: let wbint handles 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:18 +0000 (18:03 +0200)
We should return the same in all places.

metze

source3/winbindd/winbindd_dual_ndr.c

index f5f143f6126ba37733bee47d1e420eacb36138e9..f3611be786377abe623c5192b9a8aa4a77b27d67 100644 (file)
@@ -96,7 +96,7 @@ static struct tevent_req *wbint_bh_raw_call_send(TALLOC_CTX *mem_ctx,
 
        ok = wbint_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);
        }
 
@@ -201,7 +201,7 @@ static struct tevent_req *wbint_bh_disconnect_send(TALLOC_CTX *mem_ctx,
 
        ok = wbint_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);
        }