diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-12-15 01:06:01 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-12-15 01:06:01 +0000 |
commit | a22917260c56294a3627d1a71649683c9764737e (patch) | |
tree | 4ad8fdf1adcd358909d8aa9cf751c9647c8a62ac /source4/rpc_server/echo | |
parent | 79990c727c700399927d7bc7fd121fc310daa798 (diff) | |
download | samba-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/echo')
-rw-r--r-- | source4/rpc_server/echo/rpc_echo.c | 4 |
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; |