s3:libsmb: return NT_STATUS_CONNECTION_DISCONNECTED instead of NT_STATUS_CONNECTION_I...
authorStefan Metzmacher <metze@samba.org>
Wed, 14 Sep 2011 15:54:48 +0000 (17:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 14 Sep 2011 16:03:17 +0000 (18:03 +0200)
We should return the same in all places.

metze

source3/libsmb/async_smb.c

index df205dd9d08fb1fd58957f7a5c55b049982ee757..e55d5bd3656c476d28672254c3f5da758c109522 100644 (file)
@@ -478,7 +478,7 @@ static NTSTATUS cli_smb_req_iov_send(struct tevent_req *req,
        NTSTATUS status;
 
        if (!cli_state_is_connected(state->cli)) {
-               return NT_STATUS_CONNECTION_INVALID;
+               return NT_STATUS_CONNECTION_DISCONNECTED;
        }
 
        if (iov[0].iov_len < smb_wct) {