summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/spoolss.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc/spoolss.c')
-rw-r--r--source4/torture/rpc/spoolss.c5
1 files changed, 5 insertions, 0 deletions
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");