svn commit: samba r11978 - in branches/SAMBA_3_0/source/client: .
jra at samba.org
jra at samba.org
Wed Nov 30 17:56:51 GMT 2005
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;
}
More information about the samba-cvs
mailing list