summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/eventlog.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/torture/rpc/eventlog.c b/source4/torture/rpc/eventlog.c
index 7d880908b6..245dda1978 100644
--- a/source4/torture/rpc/eventlog.c
+++ b/source4/torture/rpc/eventlog.c
@@ -101,6 +101,9 @@ static bool test_ReadEventLog(struct torture_context *tctx,
struct eventlog_CloseEventLog cr;
struct policy_handle handle;
+ uint32_t sent_size = 0;
+ uint32_t real_size = 0;
+
if (!get_policy_handle(tctx, p, &handle))
return false;
@@ -108,6 +111,9 @@ static bool test_ReadEventLog(struct torture_context *tctx,
r.in.offset = 0;
r.in.handle = &handle;
r.in.flags = 0;
+ r.out.data = NULL;
+ r.out.sent_size = &sent_size;
+ r.out.real_size = &real_size;
status = dcerpc_eventlog_ReadEventLogW(p, tctx, &r);
@@ -119,8 +125,6 @@ static bool test_ReadEventLog(struct torture_context *tctx,
struct eventlog_Record rec;
struct ndr_pull *ndr;
enum ndr_err_code ndr_err;
- uint32_t sent_size = 0;
- uint32_t real_size = 0;
/* Read first for number of bytes in record */