summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/eventlog/dcesrv_eventlog6.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/source4/rpc_server/eventlog/dcesrv_eventlog6.c b/source4/rpc_server/eventlog/dcesrv_eventlog6.c
index 26b0b498f7..9a64998665 100644
--- a/source4/rpc_server/eventlog/dcesrv_eventlog6.c
+++ b/source4/rpc_server/eventlog/dcesrv_eventlog6.c
@@ -81,10 +81,18 @@ static WERROR dcesrv_eventlog6_EvtRpcRegisterControllableOperation(struct dcesrv
static WERROR dcesrv_eventlog6_EvtRpcRegisterLogQuery(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct eventlog6_EvtRpcRegisterLogQuery *r)
{
- r->out.handle = dcesrv_handle_new(dce_call->context, 0);
- W_ERROR_HAVE_NO_MEMORY(r->out.handle);
- r->out.opControl = dcesrv_handle_new(dce_call->context, 0);
- W_ERROR_HAVE_NO_MEMORY(r->out.opControl);
+ struct dcesrv_handle *handle;
+
+ handle = dcesrv_handle_new(dce_call->context, 0);
+ W_ERROR_HAVE_NO_MEMORY(handle);
+
+ r->out.handle = &handle->wire_handle;
+
+ handle = dcesrv_handle_new(dce_call->context, 0);
+ W_ERROR_HAVE_NO_MEMORY(handle);
+
+ r->out.opControl = &handle->wire_handle;
+
return WERR_OK;
}