From f729abaa94e4b77fe2028d8d5ee38f9eff462fd6 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 1 Jul 2009 22:52:49 +0200 Subject: s4-smbtorture: fix getjob test in RPC-SPOOLSS. Guenther --- source4/torture/rpc/spoolss.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/torture') diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 1c4b8ed0d0..10e18e1531 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -1131,6 +1131,7 @@ static bool test_GetJob(struct torture_context *tctx, { NTSTATUS status; struct spoolss_GetJob r; + union spoolss_JobInfo info; uint32_t needed; uint32_t levels[] = {1, 2 /* 3, 4 */}; uint32_t i; @@ -1141,6 +1142,7 @@ static bool test_GetJob(struct torture_context *tctx, r.in.buffer = NULL; r.in.offered = 0; r.out.needed = &needed; + r.out.info = &info; torture_comment(tctx, "Testing GetJob level %d\n", r.in.level); @@ -1151,8 +1153,11 @@ static bool test_GetJob(struct torture_context *tctx, torture_comment(tctx, "Testing GetJob level %d\n", r.in.level); + needed = 0; + r.in.level = levels[i]; r.in.offered = 0; + r.in.buffer = NULL; status = dcerpc_spoolss_GetJob(p, tctx, &r); torture_assert_ntstatus_ok(tctx, status, "GetJob failed"); -- cgit