From af9dc6381da52c686d797a54d69b486214000cb5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 3 Oct 2008 17:57:37 -0700 Subject: Fix the build farm. In this branch cli_echo returns NTSTATUS. Jeremy --- source3/client/client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/client/client.c b/source3/client/client.c index 4d6bf8f198..eb9f31bdf2 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -4421,9 +4421,12 @@ static void readline_callback(void) /* Ping the server to keep the connection alive using SMBecho. */ { + NTSTATUS status; unsigned char garbage[16]; memset(garbage, 0xf0, sizeof(garbage)); - if (!cli_echo(cli, 1, data_blob_const(garbage, sizeof(garbage)))) { + status = cli_echo(cli, 1, data_blob_const(garbage, sizeof(garbage))); + + if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("SMBecho failed. Maybe server has closed " "the connection\n")); finished = true; -- cgit