summaryrefslogtreecommitdiff
path: root/source4/rpc_server/eventlog
diff options
context:
space:
mode:
authorAnatoliy Atanasov <anatoliy.atanasov@postpath.com>2010-09-23 11:45:16 -0700
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>2010-09-23 13:34:09 -0700
commit859f3cdd4a9d282594f195b032a65ea1c2db2703 (patch)
treeac9bf090969d1592a5023c60cac561664618083e /source4/rpc_server/eventlog
parent411e6bc3f2d18c675475113fbab6c586204472be (diff)
downloadsamba-859f3cdd4a9d282594f195b032a65ea1c2db2703.tar.gz
samba-859f3cdd4a9d282594f195b032a65ea1c2db2703.tar.bz2
samba-859f3cdd4a9d282594f195b032a65ea1c2db2703.zip
s4/eventlog6: Add dummy implementation for calls 0x5 and 0xB
The code is enough to let us run all dcdiag tests against samba4 server
Diffstat (limited to 'source4/rpc_server/eventlog')
-rw-r--r--source4/rpc_server/eventlog/dcesrv_eventlog6.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/rpc_server/eventlog/dcesrv_eventlog6.c b/source4/rpc_server/eventlog/dcesrv_eventlog6.c
index 002100ae1f..26b0b498f7 100644
--- a/source4/rpc_server/eventlog/dcesrv_eventlog6.c
+++ b/source4/rpc_server/eventlog/dcesrv_eventlog6.c
@@ -81,7 +81,11 @@ 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)
{
- DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+ 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);
+ return WERR_OK;
}
@@ -141,7 +145,7 @@ static WERROR dcesrv_eventlog6_EvtRpcMessageRenderDefault(struct dcesrv_call_sta
static WERROR dcesrv_eventlog6_EvtRpcQueryNext(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct eventlog6_EvtRpcQueryNext *r)
{
- DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+ return WERR_OK;
}