s3:libsmb: make use of cli_state_is_connected()
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 07:38:42 +0000 (09:38 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2011 15:06:07 +0000 (17:06 +0200)
metze

source3/libsmb/async_smb.c

index 462a6dc4a46c48dcf02d943e3ed494b698cef657..aac303c22e0ca82ea160f8337af1f8a7912534d6 100644 (file)
@@ -382,7 +382,7 @@ static NTSTATUS cli_smb_req_iov_send(struct tevent_req *req,
        struct tevent_req *subreq;
        NTSTATUS status;
 
-       if (state->cli->fd == -1) {
+       if (!cli_state_is_connected(state->cli)) {
                return NT_STATUS_CONNECTION_INVALID;
        }