summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-06 13:38:59 +0100
committerGünther Deschner <gd@samba.org>2009-02-06 14:59:22 +0100
commit8ddb81ca0addf1c9bad4f624e55ee5679aa3fe4c (patch)
tree6669a186f75f24a6197ada05c66de2b482ac11fe /source4/torture/rpc
parent3954cd83aa6976ef8c799eeee00f81fefb693934 (diff)
downloadsamba-8ddb81ca0addf1c9bad4f624e55ee5679aa3fe4c.tar.gz
samba-8ddb81ca0addf1c9bad4f624e55ee5679aa3fe4c.tar.bz2
samba-8ddb81ca0addf1c9bad4f624e55ee5679aa3fe4c.zip
s4-smbtorture: fix test_GetPrinterDataEx.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index d9080b92ae..6c0126ed7b 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -1152,11 +1152,15 @@ static bool test_GetPrinterDataEx(struct torture_context *tctx,
{
NTSTATUS status;
struct spoolss_GetPrinterDataEx r;
+ uint32_t type;
+ uint32_t needed;
r.in.handle = handle;
r.in.key_name = key_name;
r.in.value_name = value_name;
r.in.offered = 0;
+ r.out.type = &type;
+ r.out.needed = &needed;
torture_comment(tctx, "Testing GetPrinterDataEx\n");
@@ -1170,7 +1174,8 @@ static bool test_GetPrinterDataEx(struct torture_context *tctx,
}
if (W_ERROR_EQUAL(r.out.result, WERR_MORE_DATA)) {
- r.in.offered = r.out.needed;
+ r.in.offered = needed;
+ r.out.buffer = talloc_array(tctx, uint8_t, needed);
status = dcerpc_spoolss_GetPrinterDataEx(p, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "GetPrinterDataEx failed");