s4:rpc_server/eventlog: make use of dcesrv_handle_create()
authorStefan Metzmacher <metze@samba.org>
Thu, 8 Nov 2018 11:20:44 +0000 (12:20 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2019 02:13:34 +0000 (03:13 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/rpc_server/eventlog/dcesrv_eventlog6.c

index 9a64998..4962984 100644 (file)
@@ -83,12 +83,12 @@ static WERROR dcesrv_eventlog6_EvtRpcRegisterLogQuery(struct dcesrv_call_state *
 {
        struct dcesrv_handle *handle;
 
-       handle = dcesrv_handle_new(dce_call->context, 0);
+       handle = dcesrv_handle_create(dce_call, 0);
        W_ERROR_HAVE_NO_MEMORY(handle);
 
        r->out.handle = &handle->wire_handle;
 
-       handle = dcesrv_handle_new(dce_call->context, 0);
+       handle = dcesrv_handle_create(dce_call, 0);
        W_ERROR_HAVE_NO_MEMORY(handle);
 
        r->out.opControl = &handle->wire_handle;