git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b93eb6
)
Return NT_STATUS_UNSUCCESSFUL if the sourcedata and echodata rpcs
author
Tim Potter
<tpot@samba.org>
Mon, 28 Apr 2003 03:33:56 +0000
(
03:33
+0000)
committer
Tim Potter
<tpot@samba.org>
Mon, 28 Apr 2003 03:33:56 +0000
(
03:33
+0000)
return unexpected data.
Closes bug #2.
(This used to be commit
0c3314ab97331aa709216e7ad2a1a0c8605eb160
)
source3/rpcclient/cmd_echo.c
patch
|
blob
|
history
diff --git
a/source3/rpcclient/cmd_echo.c
b/source3/rpcclient/cmd_echo.c
index 79ba744a55a7bba6702885213b0f5b41c2f318da..fa4e6916633a20783576e5f28f709094ec9eb62f 100644
(file)
--- 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;
}
}