Fix idle client reading keepalive.
authorJeremy Allison <jra@samba.org>
Fri, 4 Jan 2008 22:56:56 +0000 (14:56 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 4 Jan 2008 22:56:56 +0000 (14:56 -0800)
Jeremy.
(This used to be commit 4ce0bf785635371e2923217b1e0b7f30986c25bb)

source3/client/client.c

index fbcfa531ed41a60e8764924339e3e6c4ffc2c199..d10e632979c339e38f70a69ae42f83d83ba277e5 100644 (file)
@@ -4333,7 +4333,7 @@ static void readline_callback(void)
           session keepalives and then drop them here.
        */
        if (FD_ISSET(cli->fd,&fds)) {
-               if (!receive_smb_raw(cli->fd,cli->inbuf,0,0,&cli->smb_rw_error)) {
+               if (receive_smb_raw(cli->fd,cli->inbuf,0,0,&cli->smb_rw_error) == -1) {
                        DEBUG(0, ("Read from server failed, maybe it closed the "
                                "connection\n"));
                        return;