diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-16 15:14:18 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-16 07:16:04 +0000 |
commit | 2421c0dcfb80665cbb4469767c5bc67b248b94e0 (patch) | |
tree | 6ed10c4422190da2072ba71dadc46079ed4dfaae | |
parent | ebd8e66ed0c1aae4d482ea933a8a492a2ab82e13 (diff) | |
download | samba-2421c0dcfb80665cbb4469767c5bc67b248b94e0.tar.gz samba-2421c0dcfb80665cbb4469767c5bc67b248b94e0.tar.bz2 samba-2421c0dcfb80665cbb4469767c5bc67b248b94e0.zip |
s4-eventlog: fixed dcerpc handle return
-rw-r--r-- | source4/rpc_server/eventlog/dcesrv_eventlog6.c | 16 |
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; } |