git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9390d3
)
Fix the build farm. In this branch cli_echo returns NTSTATUS.
author
Jeremy Allison
<jra@samba.org>
Sat, 4 Oct 2008 00:57:37 +0000
(17:57 -0700)
committer
Jeremy Allison
<jra@samba.org>
Sat, 4 Oct 2008 00:57:37 +0000
(17:57 -0700)
Jeremy
source3/client/client.c
patch
|
blob
|
history
diff --git
a/source3/client/client.c
b/source3/client/client.c
index 4d6bf8f198a8b869f236b9f1c89a6979c56418d2..eb9f31bdf2736a436206f6d0aebadbcaae16ca08 100644
(file)
--- 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;