s4:rpc_server/drsuapi: 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/drsuapi/dcesrv_drsuapi.c

index 9796da405f731e2cb605922b46d6700a9f8aa4bc..415e8db084e66733bc75ffaeb36a87ee00c5cc7e 100644 (file)
@@ -293,7 +293,7 @@ static WERROR dcesrv_drsuapi_DsBind(struct dcesrv_call_state *dce_call, TALLOC_C
        /*
         * allocate a bind handle
         */
        /*
         * allocate a bind handle
         */
-       handle = dcesrv_handle_new(dce_call->context, DRSUAPI_BIND_HANDLE);
+       handle = dcesrv_handle_create(dce_call, DRSUAPI_BIND_HANDLE);
        W_ERROR_HAVE_NO_MEMORY(handle);
        handle->data = talloc_steal(handle, b_state);
 
        W_ERROR_HAVE_NO_MEMORY(handle);
        handle->data = talloc_steal(handle, b_state);