summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-03 17:57:37 -0700
committerJeremy Allison <jra@samba.org>2008-10-03 17:57:37 -0700
commitaf9dc6381da52c686d797a54d69b486214000cb5 (patch)
tree0047125bbf38ffafe7554c0386d9f8fdef44d22a /source3
parenta9390d3047b7b7aba6f73c20e3dff292f7600a9f (diff)
downloadsamba-af9dc6381da52c686d797a54d69b486214000cb5.tar.gz
samba-af9dc6381da52c686d797a54d69b486214000cb5.tar.bz2
samba-af9dc6381da52c686d797a54d69b486214000cb5.zip
Fix the build farm. In this branch cli_echo returns NTSTATUS.
Jeremy
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c5
1 files changed, 4 insertions, 1 deletions
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;