summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/client/client.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 9b36ff7098..4b7df92877 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -5032,15 +5032,11 @@ static void readline_callback(void)
/* Ping the server to keep the connection alive using SMBecho. */
memset(garbage, 0xf0, sizeof(garbage));
status = cli_echo(cli, 1, data_blob_const(garbage, sizeof(garbage)));
- if (NT_STATUS_EQUAL(status, NT_STATUS_PIPE_BROKEN) ||
- NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE) ||
- NT_STATUS_EQUAL(status, NT_STATUS_IO_TIMEOUT)) {
+ if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("SMBecho failed (%s). Maybe server has closed "
"the connection\n", nt_errstr(status)));
finished = true;
smb_readline_done();
- /* Ignore all other errors - sometimes servers simply
- don't implement SMBecho (Apple for example). */
}
}