diff options
author | Jeremy Allison <jra@samba.org> | 2008-01-04 14:56:56 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-01-04 14:56:56 -0800 |
commit | 058ba641f3d6def3dc5f97fa4522caa1c1c505f9 (patch) | |
tree | 1f7ba1df6e314fd5de896643a7898819eb77d69c | |
parent | 9394916e49d124461299af8d3e13e97d2c935d14 (diff) | |
download | samba-058ba641f3d6def3dc5f97fa4522caa1c1c505f9.tar.gz samba-058ba641f3d6def3dc5f97fa4522caa1c1c505f9.tar.bz2 samba-058ba641f3d6def3dc5f97fa4522caa1c1c505f9.zip |
Fix idle client reading keepalive.
Jeremy.
(This used to be commit 4ce0bf785635371e2923217b1e0b7f30986c25bb)
-rw-r--r-- | source3/client/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index fbcfa531ed..d10e632979 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -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; |