Fix the build farm. In this branch cli_echo returns NTSTATUS.
authorJeremy Allison <jra@samba.org>
Sat, 4 Oct 2008 00:57:37 +0000 (17:57 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 4 Oct 2008 00:57:37 +0000 (17:57 -0700)
Jeremy

source3/client/client.c

index 4d6bf8f198a8b869f236b9f1c89a6979c56418d2..eb9f31bdf2736a436206f6d0aebadbcaae16ca08 100644 (file)
@@ -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;