diff options
-rw-r--r-- | source4/torture/rpc/spoolss.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 1517b4d57e..797cd47e69 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -2784,12 +2784,13 @@ static bool test_GetJob_args(struct torture_context *tctx, status = dcerpc_spoolss_GetJob_r(b, tctx, &r); torture_assert_ntstatus_ok(tctx, status, "GetJob failed"); - torture_assert_werr_ok(tctx, r.out.result, "GetJob failed"); - torture_assert(tctx, r.out.info, "No job info returned"); - - CHECK_NEEDED_SIZE_LEVEL(spoolss_JobInfo, r.out.info, r.in.level, lp_iconv_convenience(tctx->lp_ctx), needed, 4); } + torture_assert_werr_ok(tctx, r.out.result, "GetJob failed"); + torture_assert(tctx, r.out.info, "No job info returned"); + + CHECK_NEEDED_SIZE_LEVEL(spoolss_JobInfo, r.out.info, r.in.level, lp_iconv_convenience(tctx->lp_ctx), needed, 4); + if (info_p) { *info_p = *r.out.info; } |