Index: client/client.c =================================================================== --- client/client.c (Revision 11970) +++ client/client.c (Arbeitskopie) @@ -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, may it closed the " + "connection\n")); + return; + } goto again; }