Author: jra
Date: 2005-11-30 17:56:50 +0000 (Wed, 30 Nov 2005)
New Revision: 11978

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11978

Log:
Volker's fix for #3292 (smbclient spins if server terminates
connection).
Jeremy.

Modified:
   branches/SAMBA_3_0/source/client/client.c


Changeset:
Modified: branches/SAMBA_3_0/source/client/client.c
===================================================================
--- branches/SAMBA_3_0/source/client/client.c   2005-11-30 17:53:23 UTC (rev 
11977)
+++ branches/SAMBA_3_0/source/client/client.c   2005-11-30 17:56:50 UTC (rev 
11978)
@@ -3084,7 +3084,11 @@
           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;
        }
       

Reply via email to