summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-11-30 17:56:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:41 -0500
commit0732d2505799920799321d81515df53d62fa4f86 (patch)
tree863075a67823e4bb2ec64c13f73a9e33dc00059f
parent0af6dcacec1831bad1e901383a2c6458e1b0606f (diff)
downloadsamba-0732d2505799920799321d81515df53d62fa4f86.tar.gz
samba-0732d2505799920799321d81515df53d62fa4f86.tar.bz2
samba-0732d2505799920799321d81515df53d62fa4f86.zip
r11978: Volker's fix for #3292 (smbclient spins if server terminates
connection). Jeremy. (This used to be commit 9b8602e0551500916a9d79c317589cd82d3da111)
-rw-r--r--source3/client/client.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 7a4f853d54..f95bbea671 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -3084,7 +3084,11 @@ static void readline_callback(void)
session keepalives and then drop them here.
*/
if (FD_ISSET(cli->fd,&fds)) {
- receive_smb(cli->fd,cli->inbuf,0);
+ if (!receive_smb(cli->fd,cli->inbuf,0)) {
+ DEBUG(0, ("Read from server failed, maybe it closed the "
+ "connection\n"));
+ return;
+ }
goto again;
}