summaryrefslogtreecommitdiff
path: root/source4/rpc_server/echo
diff options
context:
space:
mode:
Diffstat (limited to 'source4/rpc_server/echo')
-rw-r--r--source4/rpc_server/echo/rpc_echo.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source4/rpc_server/echo/rpc_echo.c b/source4/rpc_server/echo/rpc_echo.c
index ec5d667b46..25ac28a664 100644
--- a/source4/rpc_server/echo/rpc_echo.c
+++ b/source4/rpc_server/echo/rpc_echo.c
@@ -70,12 +70,9 @@ static NTSTATUS echo_TestCall2(struct dcesrv_call_state *dce_call, TALLOC_CTX *m
{
r->out.info = talloc(mem_ctx, sizeof(*r->out.info));
if (!r->out.info) {
- r->out.result = NT_STATUS_NO_MEMORY;
- return NT_STATUS_OK;
+ return NT_STATUS_NO_MEMORY;
}
- r->out.result = NT_STATUS_OK;
-
switch (r->in.level) {
case 1:
r->out.info->info1.v = 10;
@@ -105,8 +102,7 @@ static NTSTATUS echo_TestCall2(struct dcesrv_call_state *dce_call, TALLOC_CTX *m
r->out.info->info7.info4.v.high = 0;
break;
default:
- r->out.result = NT_STATUS_INVALID_LEVEL;
- break;
+ return NT_STATUS_INVALID_LEVEL;
}
return NT_STATUS_OK;