diff options
Diffstat (limited to 'source4')
-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; |