summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-04-28 03:33:56 +0000
committerTim Potter <tpot@samba.org>2003-04-28 03:33:56 +0000
commit39fbda7f036fa615ac46a7c9729e1f420972208b (patch)
tree2f00fb87ca73f53d42fc424051c565835718b5fd
parent9b93eb6f82a349273b6e402d9623179785cadce1 (diff)
downloadsamba-39fbda7f036fa615ac46a7c9729e1f420972208b.tar.gz
samba-39fbda7f036fa615ac46a7c9729e1f420972208b.tar.bz2
samba-39fbda7f036fa615ac46a7c9729e1f420972208b.zip
Return NT_STATUS_UNSUCCESSFUL if the sourcedata and echodata rpcs
return unexpected data. Closes bug #2. (This used to be commit 0c3314ab97331aa709216e7ad2a1a0c8605eb160)
-rw-r--r--source3/rpcclient/cmd_echo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_echo.c b/source3/rpcclient/cmd_echo.c
index 79ba744a55..fa4e691663 100644
--- a/source3/rpcclient/cmd_echo.c
+++ b/source3/rpcclient/cmd_echo.c
@@ -74,6 +74,7 @@ static NTSTATUS cmd_echo_data(struct cli_state *cli, TALLOC_CTX *mem_ctx,
if (in_data[i] != out_data[i]) {
printf("mismatch at offset %d, %d != %d\n",
i, in_data[i], out_data[i]);
+ result = NT_STATUS_UNSUCCESSFUL;
}
}
@@ -107,6 +108,7 @@ static NTSTATUS cmd_echo_source_data(struct cli_state *cli,
if (out_data && out_data[i] != (i & 0xff)) {
printf("mismatch at offset %d, %d != %d\n",
i, out_data[i], i & 0xff);
+ result = NT_STATUS_UNSUCCESSFUL;
}
}