summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-01-14 16:59:42 +0100
committerGünther Deschner <gd@samba.org>2009-01-16 00:28:44 +0100
commit288c4691952a4688f05ae3a5cd137db346a2a276 (patch)
treeb01cfa7d2792cf3e3469dcd0d127dc772c3c6e19 /source4/torture/rpc
parent6c5a1b037261c99f60a2d42c4b53ebbf85abd756 (diff)
downloadsamba-288c4691952a4688f05ae3a5cd137db346a2a276.tar.gz
samba-288c4691952a4688f05ae3a5cd137db346a2a276.tar.bz2
samba-288c4691952a4688f05ae3a5cd137db346a2a276.zip
s4-smbtorture: fix RPC-EVENTLOG test.
Guenther
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 */