diff options
-rw-r--r-- | source3/client/client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 7a4f853d54..f95bbea671 100644 --- a/source3/client/client.c +++ b/source3/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; } |