summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-15 01:06:01 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-15 01:06:01 +0000
commita22917260c56294a3627d1a71649683c9764737e (patch)
tree4ad8fdf1adcd358909d8aa9cf751c9647c8a62ac /source4/rpc_server
parent79990c727c700399927d7bc7fd121fc310daa798 (diff)
downloadsamba-a22917260c56294a3627d1a71649683c9764737e.tar.gz
samba-a22917260c56294a3627d1a71649683c9764737e.tar.bz2
samba-a22917260c56294a3627d1a71649683c9764737e.zip
zero length echo is not an error
(This used to be commit f21d6351d0441e5bc77aca07a2863ef9f999bb92)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/echo/rpc_echo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/rpc_server/echo/rpc_echo.c b/source4/rpc_server/echo/rpc_echo.c
index 1d3846aaff..9d2c72e1b6 100644
--- 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;