From 288c4691952a4688f05ae3a5cd137db346a2a276 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 14 Jan 2009 16:59:42 +0100 Subject: s4-smbtorture: fix RPC-EVENTLOG test. Guenther --- source4/torture/rpc/eventlog.c | 8 ++++++-- 1 file 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 */ -- cgit