diff options
author | Günther Deschner <gd@samba.org> | 2009-02-06 12:18:06 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-06 14:59:20 +0100 |
commit | 22e2f220be4ac05aead7ba7a893904299c5bbfd8 (patch) | |
tree | c328a952d4bff8ac89384c5cf35714930c255ca5 /source4/torture/rpc | |
parent | cf15c687d279d3807caa90560d8799d6b00f005b (diff) | |
download | samba-22e2f220be4ac05aead7ba7a893904299c5bbfd8.tar.gz samba-22e2f220be4ac05aead7ba7a893904299c5bbfd8.tar.bz2 samba-22e2f220be4ac05aead7ba7a893904299c5bbfd8.zip |
s4-smbtorture: fix test_GetJob.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/spoolss.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 4a6ff480c4..7a64d9abcb 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -888,12 +888,14 @@ static bool test_GetJob(struct torture_context *tctx, { NTSTATUS status; struct spoolss_GetJob r; + uint32_t needed; r.in.handle = handle; r.in.job_id = job_id; r.in.level = 1; r.in.buffer = NULL; r.in.offered = 0; + r.out.needed = &needed; torture_comment(tctx, "Testing GetJob\n"); @@ -901,10 +903,10 @@ static bool test_GetJob(struct torture_context *tctx, torture_assert_ntstatus_ok(tctx, status, "GetJob failed"); if (W_ERROR_EQUAL(r.out.result, WERR_INSUFFICIENT_BUFFER)) { - DATA_BLOB blob = data_blob_talloc(tctx, NULL, r.out.needed); + DATA_BLOB blob = data_blob_talloc(tctx, NULL, needed); data_blob_clear(&blob); r.in.buffer = &blob; - r.in.offered = r.out.needed; + r.in.offered = needed; status = dcerpc_spoolss_GetJob(p, tctx, &r); |