summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/samba3rpc.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-16 16:42:21 +0100
committerGünther Deschner <gd@samba.org>2009-02-17 16:15:52 +0100
commit64cec9984346ce1c8aeb170cd55be6e7e6784919 (patch)
treed1c7ae22a337786a8f61813be6d07c2646a01eb6 /source4/torture/rpc/samba3rpc.c
parent9877f3d574392681ef121f8c9c038596f6d333dc (diff)
downloadsamba-64cec9984346ce1c8aeb170cd55be6e7e6784919.tar.gz
samba-64cec9984346ce1c8aeb170cd55be6e7e6784919.tar.bz2
samba-64cec9984346ce1c8aeb170cd55be6e7e6784919.zip
s4-smbtorture: fix spoolss test after count out,ref idl changes.
Guenther
Diffstat (limited to 'source4/torture/rpc/samba3rpc.c')
-rw-r--r--source4/torture/rpc/samba3rpc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/rpc/samba3rpc.c b/source4/torture/rpc/samba3rpc.c
index 9cb36fc6cc..c9e65cf493 100644
--- a/source4/torture/rpc/samba3rpc.c
+++ b/source4/torture/rpc/samba3rpc.c
@@ -2618,6 +2618,7 @@ static bool enumprinters(TALLOC_CTX *mem_ctx, struct dcerpc_pipe *pipe,
NTSTATUS status;
DATA_BLOB blob;
uint32_t needed;
+ uint32_t count;
r.in.flags = PRINTER_ENUM_LOCAL;
r.in.server = talloc_asprintf(mem_ctx, "\\\\%s", servername);
@@ -2625,6 +2626,7 @@ static bool enumprinters(TALLOC_CTX *mem_ctx, struct dcerpc_pipe *pipe,
r.in.buffer = NULL;
r.in.offered = 0;
r.out.needed = &needed;
+ r.out.count = &count;
status = dcerpc_spoolss_EnumPrinters(pipe, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
@@ -2657,7 +2659,7 @@ static bool enumprinters(TALLOC_CTX *mem_ctx, struct dcerpc_pipe *pipe,
return false;
}
- *num_printers = r.out.count;
+ *num_printers = count;
return true;
}