summaryrefslogtreecommitdiffstats
path: root/source/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-11-30 17:56:50 +0000
committerJeremy Allison <jra@samba.org>2005-11-30 17:56:50 +0000
commitc9e5a09d558180ab3d0858ceabc08e2ea23c503f (patch)
tree43ebb7e9e210061a7509d56921437ff5cfe6306f /source/client
parent315bad9be12ecc6c0d3fb2a7e0e7c3832f3a8b01 (diff)
downloadsamba-c9e5a09d558180ab3d0858ceabc08e2ea23c503f.tar.gz
samba-c9e5a09d558180ab3d0858ceabc08e2ea23c503f.tar.xz
samba-c9e5a09d558180ab3d0858ceabc08e2ea23c503f.zip
r11978: Volker's fix for #3292 (smbclient spins if server terminates
connection). Jeremy.
Diffstat (limited to 'source/client')
-rw-r--r--source/client/client.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 7a4f853d543..f95bbea6718 100644
--- a/source/client/client.c
+++ b/source/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;
}