summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-04-28 03:36:01 +0000
committerTim Potter <tpot@samba.org>2003-04-28 03:36:01 +0000
commitee007fc7b8899052e73896fd19b2e71ef6e59be7 (patch)
treec77922cc5934603e8c89134a03e300fa5a7418e8 /source3
parent37865338804e76b36f3bb53fef58398f44cbf0a3 (diff)
downloadsamba-ee007fc7b8899052e73896fd19b2e71ef6e59be7.tar.gz
samba-ee007fc7b8899052e73896fd19b2e71ef6e59be7.tar.bz2
samba-ee007fc7b8899052e73896fd19b2e71ef6e59be7.zip
Merge from HEAD:
>Return NT_STATUS_UNSUCCESSFUL if the sourcedata and echodata rpcs >return unexpected data. > >Closes bug #2. (This used to be commit 2e5f75beafd3f3d81869ce68e77b8c53cd7a2caf)
Diffstat (limited to 'source3')
-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;
}
}