git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79990c7
)
zero length echo is not an error
author
Andrew Tridgell
<tridge@samba.org>
Mon, 15 Dec 2003 01:06:01 +0000
(
01:06
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 15 Dec 2003 01:06:01 +0000
(
01:06
+0000)
(This used to be commit
f21d6351d0441e5bc77aca07a2863ef9f999bb92
)
source4/rpc_server/echo/rpc_echo.c
patch
|
blob
|
history
diff --git
a/source4/rpc_server/echo/rpc_echo.c
b/source4/rpc_server/echo/rpc_echo.c
index 1d3846aaffab2203f78e07a48a696d1aea83f16e..9d2c72e1b6dead875d63b808a095b1e4fad1a96c 100644
(file)
--- a/
source4/rpc_server/echo/rpc_echo.c
+++ b/
source4/rpc_server/echo/rpc_echo.c
@@
-31,6
+31,10
@@
static NTSTATUS echo_AddOne(struct dcesrv_state *dce, TALLOC_CTX *mem_ctx, struc
static NTSTATUS echo_EchoData(struct dcesrv_state *dce, TALLOC_CTX *mem_ctx, struct echo_EchoData *r)
{
+ if (!r->in.len) {
+ return NT_STATUS_OK;
+ }
+
r->out.out_data = talloc(mem_ctx, r->in.len);
if (!r->out.out_data) {
return NT_STATUS_NO_MEMORY;