s4:lib/messaging: let irpc 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

source4/lib/messaging/messaging.c

index 7e017a97f942d5829cf18c837c5c77e83f283bea..11ebf19b22cb4f1538009be4a61b8b3b76bfbbd0 100644 (file)
@@ -1099,7 +1099,7 @@ static struct tevent_req *irpc_bh_raw_call_send(TALLOC_CTX *mem_ctx,
 
        ok = irpc_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);
        }
 
@@ -1243,7 +1243,7 @@ static struct tevent_req *irpc_bh_disconnect_send(TALLOC_CTX *mem_ctx,
 
        ok = irpc_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);
        }