Author: jra Date: 2005-11-30 17:56:53 +0000 (Wed, 30 Nov 2005) New Revision: 11979
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11979 Log: Volker's fix for #3292 (smbclient spins if server terminates connection). Jeremy. Modified: trunk/source/client/client.c Changeset: Modified: trunk/source/client/client.c =================================================================== --- trunk/source/client/client.c 2005-11-30 17:56:50 UTC (rev 11978) +++ trunk/source/client/client.c 2005-11-30 17:56:53 UTC (rev 11979) @@ -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; }
