git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9394916
)
Fix idle client reading keepalive.
author
Jeremy Allison
<jra@samba.org>
Fri, 4 Jan 2008 22:56:56 +0000
(14:56 -0800)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/source3/client/client.c
b/source3/client/client.c
index fbcfa531ed41a60e8764924339e3e6c4ffc2c199..d10e632979c339e38f70a69ae42f83d83ba277e5 100644
(file)
--- 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;